[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to enter large integers (uint64) without truncation

From: Przemek Klosowski
Subject: Re: How to enter large integers (uint64) without truncation
Date: Tue, 29 Nov 2016 17:56:10 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 11/29/2016 01:16 PM, Kire Pudsje wrote:
x = uint64(2626262626262626262)
Interesting---I think you may be correct that the number is initially read as a double and only later converted to uint64.
I thought that specifying the number in hex would work around it, but no:

format hex
x = uint64(0x9876543210987654)

x       =         98765432109878 0

What's even stranger that 'format hex' seems to botch printing uint64 numbers by not printing some zeros:

ans =  0 0 0 0 0 0 123

This is in 4.0.3 on F25

reply via email to

[Prev in Thread] Current Thread [Next in Thread]