FromDouble ? How ?

BlitzMax Forums/BlitzMax Programming/FromDouble ? How ?

RGR(Posted 2006) [#1]
Hi
How does FromDouble work? I get either an empty String or a message: Identifier 'FromDouble' not found...

EDIT: I figured it out ... but still wonder if this is the best method ...
Besides the fact that it works correct.




Dreamora(Posted 2006) [#2]
y = string(x) would be the correct usage. BM has no consistent naming convention like C# and others.


Azathoth(Posted 2006) [#3]
FromDouble is a function, so it doesn't need an instance of string; it makes one.

y=String.FromDouble(x)