First time here? Check out the FAQ!

Ask Your Question
1

How to change sqrt(5) to decimal?

asked 6 years ago

john gravatar image

How can i typing to change root5 to decimal?

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 6 years ago

BrentBaccala gravatar image

Try RR(sqrt(5)). The default precision is 53 bits, but that can be changed. For 100 bits of precision, use RealField(100)(sqrt(5))

Preview: (hide)
link

Comments

1

or

a=sqrt(5)
a.n(400)
FrédéricC gravatar imageFrédéricC ( 6 years ago )
1

More detail, such as controlling the number of digits or precision, can be found in the documentation here. On this site, here gives some options.

dazedANDconfused gravatar imagedazedANDconfused ( 6 years ago )
1

answered 6 years ago

nur_hamid gravatar image

simply by

float(sqrt(5))

or

RR(sqrt(5))
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 6 years ago

Seen: 1,609 times

Last updated: Mar 11 '19