Jump to content

confusion about number function


Recommended Posts

When I try to make a number with a comma in it into a number, the number function deletes everything after the comma (which I thought, was what the Int function is supposed to do).

For instance in the following code:

CODE
$Var1 = "27,350"

$Var2 = Number($Var1)

msgbox(0, "", "result: " & $Var2)

I get the result "27", when I want 27350.

I'm sure this is an easy fix but I couldn't find anything in the help file or elsewhere.

Thanks for your help.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...