Group Abstract Group Abstract

Message Boards Message Boards

0
|
60 Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

Rounding a number to a specific significant figure is not working properly

Rounding a number to a specific significant figure is not working properly. For example, 1.264911064 to 3 sf results in 1.26491. This problem/bug is recent I guess, because in the past I got correct answers of rounding to sf.

POSTED BY: Tanvir Zawad

Have you tried one of these?

x = 1.264911064;
NumberForm[x, 3]
Round[x, 1/100] // N
ResourceFunction["DecimalRound"][x, 3]
POSTED BY: Gianluca Gorni
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard