Sign in to follow this  
Followers 0
Champak

Conversion issue

3 posts in this topic

i need to do some math, unfortunately it seems the numbers im working on is a string and will not calculate. How do i convert a string to to numbers I can calculate? I tried the int() and number() but they are not working for me....or do not do what I think they are supposed to.

the number is in a variable which Im trying to check greater and less than, and then do simple additions to.

 

thanks.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Number() does exactly what you want, and you can verify with IsNumber() maybe something else is wrong in your syntax/code?

Why don't you post so we can check. 

 

Edited by ViciousXUSMC

Share this post


Link to post
Share on other sites

Sorry, misspelled the variable, all is good....yall move quick lol. Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0