Limiting digits displayed after decimal in DrawLabel
Author: grtrader
Creation Date: 8/19/2014 8:11 AM
profile picture

grtrader

#1
How can I limit the display of a number in DrawLabel? For instance, if I have a double variable that calculates out to lets say 27.45678789, I only want to display 27.45.
profile picture

Eugene

#2
There are two ways, both are covered in this thread and both are applicable to DrawLabel as well:

Formatting two decimal places when writing to a file
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).