float to int in script?
by Sabrecyd · in Torque Game Engine · 11/13/2002 (10:47 am) · 8 replies
Anyone know how to convert a float to an integer in the script? I'm trying to display some HUD stuff and displaying a float value is annoying. I did try using the console function mAbs() but that didn't seem to do anything.
Thanks,
-Sabrecyd
Thanks,
-Sabrecyd
About the author
#2
11/13/2002 (11:46 am)
floor? Is that a function? That gives me an unknown function warning.
#4
11/13/2002 (12:00 pm)
Perfect! Thanks guys. I saw those two functions in the TGE Console Commands doc and didn't try them. I guess I was looking for a abs or int type function. This works great though. Thanks again.
#5
11/13/2002 (12:27 pm)
abs doesn't have anything to do with rounding to an int.
#6
11/13/2002 (12:52 pm)
Yeah, I don't know what I was thinking about. I don't have any negative values even being used.
#7
11/27/2002 (5:36 am)
Where did you find this TGE Console Commands document? I've been trying to find something that explains the console functions of torque. Thanks in advance.
#8
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2034
It is very useful as a reference.
11/27/2002 (6:01 am)
Here's the link:www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=2034
It is very useful as a reference.
Torque Owner Harold "LabRat" Brown