- Home /
Question by
FatallErroR · Jul 23, 2013 at 07:23 PM ·
floatguitextconvert
Converting float to int in GuiText (javaScript)
Hello guys,
I'm having some trouble with my float variables in GUITexts, these variables are all float, however, i want to show them in GUIText as Int variables. Is there any way to do such thing?
Thanks in advance.
Comment
Best Answer
Answer by FatallErroR · Jul 24, 2013 at 10:49 PM
I've found the solution in js, it's actually pretty simple ...
var aFloat = 5.0;
var anInt : int = aFloat;
Your answer
Follow this Question
Related Questions
Turn float to int 2 Answers
How to convert 00:40:00.0 to float 2 Answers
[CS0266] Cannot implicitly convert type 'object' to 'float' 2 Answers
Cannot convert 'callable(int) as float' to 'float'. 1 Answer