Oh well, it was what you asked so I assumed it was what you wanted to know..:)
Your second post seems to be asking how to convert an int into a floating range of 0.1?
If so, this'll do it,
Max range being the highest value an int will reach.(This'll result in 1)
Sorry if I'm mis-understood again, i'm not all that good at maths...
Your second post seems to be asking how to convert an int into a floating range of 0.1?
If so, this'll do it,
Function IntToFloat:Float( IntVal:Int,MaxVal:Int ) return float(maxVal)/float(intVal) end function
Max range being the highest value an int will reach.(This'll result in 1)
Sorry if I'm mis-understood again, i'm not all that good at maths...