Posts: 4,653
Threads: 1,496
Joined: Sep 2016
what is the largest int that can be converted to float such that 1 larger cannot be converted to float?
hint: it is not a power of 2
suggestion: don't bother trying to step by 1 unless you start very close to the right number
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,653
Threads: 1,496
Joined: Sep 2016
the issue is that
float has a limited size which i understand can vary by implementation.
cpython, the most commonly distributed implementation, uses type
double in the C language. the limitation is what the hardware does for C
double (not
long double).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,653
Threads: 1,496
Joined: Sep 2016
Jan-09-2021, 11:23 PM
(This post was last modified: Jan-09-2021, 11:23 PM by Skaperen.)
is there a way to do int with
gmp to do extreme ints faster? i still have to translate extreme int stuff to Pike to get the speed (it has indefinite ints like Python but uses
gmplib to implement them).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.