Anything like (std::numeric_limits<float>::max)() ??
by Tejaswin · in Torque Game Builder · 08/10/2010 (5:54 am) · 3 replies
Hi,
I need the max and min values of the basic datatypes like int,float. Is there any function/method that gives this in TGB like in C++ we have (std::numeric_limits<float>::max)() - which gives the max value for float.
Thanks in advance,
Tejaswin.
I need the max and min values of the basic datatypes like int,float. Is there any function/method that gives this in TGB like in C++ we have (std::numeric_limits<float>::max)() - which gives the max value for float.
Thanks in advance,
Tejaswin.
About the author
#3
Thanks for the comments and the link.
08/11/2010 (9:20 am)
I was looking for the max value float can take in TGB, but now I understand that it is not possible as everything is taken as String.Thanks for the comments and the link.
Torque Owner Alain Labrie
Ware-Wolf Games
edit: If all you want is to find the max or min between two values then Patrick is correct...but if you are looking for the Max value that a float or int data type can have then no (since there are no data types in torquescript).