Login Page - Create Account

Support Board


Date/Time: Thu, 18 Apr 2024 18:18:51 +0000



Rounding

View Count: 741

[2015-08-27 06:56:12]
User713273 - Posts: 409
I was trying to understand I have a custom formula and want to see the difference between current price and last price for $IWM I get unrounded values since the the column shown is rounded like 112.98 and 112.97. If I subtract that I get .009999999 why not .01 since it was rounded already?

Thanks for you help and clarity.
[2015-08-27 08:42:52]
Sierra Chart Engineering - Posts: 104368
Refer to this section here:
https://www.sierrachart.com/index.php?page=doc/doc_StudiesSystemsAlerts.php#ImprecisionOfFloatingPointNumbers

You will need to set the Number Format for the result cell.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account