Maximum value of a number in TCL

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hi friends,

I want to know value of maximum number that can be defined in tcl. At a intermediate step in calculation i have power value e.g. [pow(x,y)] , y as 200000 so calculation is quitting due to floating point error.

Suggest me if it can be done by any other way.

Thanks in advance

mandar

Answers

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2007

    Dear Mandar,

    You cane covert the number to scientific number (e.g. 12.12E+05). Use format command to do so. ANd also 'expr' 'wide' commands you can use

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited December 2007

    This means their is no limit for integer number.