Incorrect decimal places displaying

Incorrect decimal places displaying - Result shows less digits after comma than set when rounding - Messages

#1 Posted: 4/19/2017 12:00:49 PM
m227

m227

4 likes in 29 posts.

Group: User

Dear Andrey,
When I specify the number of decimal places in the result of any expression and the last digit is zero then it is also cut.
Sample:
  1. Set value n:=0,798
  2. List value by typing n=
  3. Set number digits after comma to 2

I would expect to have 0,80, instead I get 0,8. It is confusing as reader does not know that I use two digits precision in my calculations.

Michał
#2 Posted: 4/19/2017 12:08:55 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Hello [userlink]m227[/userlink],

have you tried the "trailing zeros" option in the context menu?

2017-04-19 17_07_34-SMath Studio - [Page1_].png





If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#3 Posted: 4/19/2017 12:15:09 PM
m227

m227

4 likes in 29 posts.

Group: User

Davide, you saved my day.
So this post can be deleted. I don't know how could I omit this, blind am I...
Probably this function should be set ON default?
Michał
#4 Posted: 4/19/2017 4:22:26 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Probably this function should be set ON default?
Michał



Most of the times, I would vote for this option [show trailing 0's].
Other times would vote "NO". Option "show trailing 0's" enables to
line up decimal points in data tabulated from calculations.

Jean

#5 Posted: 4/19/2017 7:39:36 PM
Davide Carpi

Davide Carpi

1416 likes in 2873 posts.

Group: Moderator

Wrote

Probably this function should be set ON default?



I think would be possible to setup this as a global option that acts on new regions (like decimal places; tools -> options -> calculation).

BTS feature requesst: SS-2442
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts