Ask Your Question
0

how to get value without e?

asked 2021-04-25 17:01:36 +0200

Miroslaw gravatar image

updated 2021-07-27 20:58:13 +0200

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.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2021-04-25 17:27:49 +0200

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
edit flag offensive delete link more

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: 2021-04-25 17:01:36 +0200

Seen: 387 times

Last updated: Apr 25 '21