Jump to content
cezarlacatus

How to display number with decimals??

Recommended Posts

cezarlacatus

Hello, If i take this number (0.00000700) in a variable and display it it will display 7e-006

I want to display it normally how can i do that.....

Until now I have tried this

 

Global $buyed = 0.00000700

$buyed = Round($buyed,20)
ConsoleWrite($buyed)
 

Thank you verry verry much

Edited by cezarlacatus

Share this post


Link to post
Share on other sites
water

StringFormat


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites
cezarlacatus
6 minutes ago, water said:

StringFormat

And in my case do you know what var i should set on it??

ConsoleWrite(StringFormat($buyed, VAR))

Share this post


Link to post
Share on other sites
cezarlacatus

I did it thank you verry much for help

Share this post


Link to post
Share on other sites
water
ConsoleWrite(StringFormat("%.8f", $buyed))

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

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

×