rounding to a specific number decimal places

mathhelpineed shared this question 9 years ago
Answered

In the Windows 8 GeoGebra application, how do I change the amount of decimal places the program rounds to?

Comments (3)

photo
1

hi,


b = round(a 10^n) / 10^n

Where 'n' is the desired number of decimal places.


Raymond

photo
1

Hello. Thank you for the help.


Is the round command an official command, in so why is it not in the list of all the commands?


What do a and b mean, are they referring to objects? Can I change the letters to other letters, will the command still work?


Am I correct to assume, that I have to plug this command into the input bar? Am I correct to assume that round is a command?

photo
1

Hi,


Is the round command an official command

is not a command, is a official predefined function link

You can see the predefined functions also in 'Input Help' / 'Mathematical Functions'


What do a and b mean, are they referring to objects? Can I change the letters to other letters, will the command still work?

yes they referring objects, b must have the type 'number'

<nameNewNumber> = round(<nameNumber> 10^<numberDecimalPlaces>) / 10^<numberDecimalPlaces>


Am I correct to assume, that I have to plug this command into the input bar?

yes


Raymond

© 2023 International GeoGebra Institute