Jump to content

Formatting Numbers


nscnick

Recommended Posts

HiI am trying to format numbers, to display currencies with 2 decimal places. However, I can set the initial value fine but after any calculation it reverts to integer or uncontrolled decimal. These are for display in a table text box or similar.Any help is gratefully received.

Link to comment
Share on other sites

And after a lot of experimentation I discovered that it converts the number to a string! So I needed an interim value for display purposes to go into the html text box, so that the running total stayed a number!Got there in the end.

Link to comment
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
×
×
  • Create New...