By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,501 Members | 2,805 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,501 IT Pros & Developers. It's quick & easy.

Adding a decimal to a raw number

P: 2
Hello folks,
Here is my problem. I have a raw number 123456789, i would like to add a decimal place to this raw number so it is displayed as 1234567.89. Whenever i use the format function it displays as 123456789.00.

Thank you,
Jan 31 '08 #1
Share this Question
Share on Google+
2 Replies


kadghar
Expert 100+
P: 1,295
Hello folks,
Here is my problem. I have a raw number 123456789, i would like to add a decimal place to this raw number so it is displayed as 1234567.89. Whenever i use the format function it displays as 123456789.00.

Thank you,
use the format function and divide it!

123456789 / 100 = 1234567.89

you can use 123456789 / (10^n)

where n are the decimal places.
Jan 31 '08 #2

P: 2
Excellent, thank you.
Jan 31 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.