DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

print decimal number

Solved!
Go to solution

Hello,

 

I am trying to print decimal number but i always got the decimal number (between -1 to 1) witout "0" or "-0"

 

Dim num:num= 0.235

Msgbox(num)

 

its print: ".235"

 

thanks

0 Kudos
Message 1 of 3
(5,283 Views)
Solution
Accepted by topic author OzShimon

Hello OzShimon,

 

That's odd, I just tried your code and get this result:

 

Screen.jpg

 

I did notice that this behavior can be changed in the "Regions and Language" configuration of Windows. In Windows 7 it's this dialog:

 

screen2.jpg

 

If I change the settings in this dialog to no leading zeros, the result is the same as you described.

 

Can you check your Windows settings and confirm that yours looks the same as mine?

 

Best regards,

 

      Otmar

Otmar D. Foehner
0 Kudos
Message 2 of 3
(5,272 Views)

Thanks it's working!!

0 Kudos
Message 3 of 3
(5,261 Views)