Ask Your Question
0

how to get value without e?

asked 4 years ago

Miroslaw gravatar image

updated 3 years ago

FrédéricC gravatar image

calculation: print(1/664613997892457936451903530140172288)

result in sage : 1/664613997892457936451903530140172288

result in python: 1.504632769052528e-36

how to get number without e-36? I need exactly number of divided.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 4 years ago

Max Alekseyev gravatar image

We can control how many decimal digits to print with formatted floating point output - for example, here we get 50 decimal digits:

sage: t = 1/664613997892457936451903530140172288                                                                                                                                                                                                              
sage: print('%.50f' % t )                                                                                                                                                                                                                                     
0.00000000000000000000000000000000000150463276905253
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

1 follower

Stats

Asked: 4 years ago

Seen: 483 times

Last updated: Apr 25 '21