0

Is there a way to convert max int64 number to float number?

I have a max int64 number 9223372036854775807 I want to convert this to float or double. How can I do it in python?

I am developing an automated trading system using a well known broker's API. API sent that number as a response to one of my requests.

Chiyaan Suraj
  • 1,021
  • 2
  • 13
  • 27

2 Answers2

0

try this !

a = float(9223372036854775807)
sumit
  • 3,210
  • 1
  • 19
  • 37
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/12607306) – Igor Ivancha Jun 07 '16 at 16:54
  • @IgorIvancha: This is a valid answer. – gariepy Jun 07 '16 at 18:00
0
import sys
print float(sys.maxint)
Aravindh
  • 535
  • 3
  • 9