How do i convert a string to a decimal in unity javascript
+1
A:
Do you mean javascript in Unity 3D?
If you are: Unity uses Mono, so you should have access to float.Parse(str)
or decimal.Parse(str)
.
(Or the qualified names System.Single.Parse(str)
or System.Decimal.Parse(str)
)
Corey Ross
2008-11-10 19:31:24