i figured it out. i used mathfloor().
double myNum = 1.3291;
int temp = myNum * 100;
double newNum = temp / 100.0;
this also works well!
int temp = myNum * 100;
double newNum = temp / 100.0;
this also works well!
double myNum = 1.3291;
newNum = MathFloor(myNum*100)/100;
quite similar!
newNum = MathFloor(myNum*100)/100;
quite similar!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
For 1.3291, i need to isolate "1.32"
Already tried converting the number to string, then back to double, but it still rounds the number to 1.33
Please help.