views:

427

answers:

1
+2  Q: 

Unity JavaScript

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