Ask Your Question

how to get value without e?

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

Miroslaw 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

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 )                                                                                                                                                                                                                                     
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


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

Seen: 39 times

Last updated: Apr 25