NUMBR underlying type

3 views
Skip to first unread message

Justin Meza

unread,
Nov 5, 2010, 11:00:05 AM11/5/10
to lci-devel
I was trying to solve a Project Euler problem in lci and I realized
that because I'm just using 32-bit integers as the underlying type for
NUMBR I was overflowing.

It seems like a good idea to make NUMBRs 64-bit integers by default.
Though it uses twice the storage it seems more useful to the
programmer (memory is pretty cheap for this kind of transient storage
anyway). Do Perl or Python store their integers as 64-bit values?

glen lenker

unread,
Nov 7, 2010, 3:58:36 AM11/7/10
to lci-...@googlegroups.com
sys.getsizeof is saying that integers on my machine are 12 bytes, so I
guess they are 96-bit integers.
Reply all
Reply to author
Forward
0 new messages