Jump to content
Sign in to follow this  
Christopher Blue

Best way to add a leading zero to Round()?

Recommended Posts

Christopher Blue

I wish to round a floating point off to one decimal place but I wish to have a floating zero. What is the best way to do this?

Share this post


Link to post
Share on other sites
Christopher Blue

Crap...thread title should say "floating" instead of "leading". :idiot:

Share this post


Link to post
Share on other sites
Christopher Blue

Yes but Round doesn't pad a zero. I need to pad a zero.

Share this post


Link to post
Share on other sites
Christopher Blue

That's a good way of doing it! Thanks CyberSlug!

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  

×