Fraction and isPowerOfTwo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Fraction and isPowerOfTwo

Nicolai Hess-3-2
18033 Fraction isPowerOfTwo does too much work

why exactly does this method exists (on Fraction)?
What is the rational behind

(1/32) isPowerOfTwo -> true
Reply | Threaded
Open this post in threaded view
|

Re: Fraction and isPowerOfTwo

monty-3
2^-5 = (1/32)

Reply | Threaded
Open this post in threaded view
|

Re: Fraction and isPowerOfTwo

Nicolai Hess-3-2


2016-08-27 2:21 GMT+02:00 monty <[hidden email]>:
2^-5 = (1/32)


Ah, ok.

Reply | Threaded
Open this post in threaded view
|

Re: Fraction and isPowerOfTwo

stepharo

Please please please you see we need pythondoc like things

let us start by adding


<expr:

   2^-5

result:

   1/32

>

I know it is wrong because I did not get it :)


Stef


Le 27/8/16 à 03:04, Nicolai Hess a écrit :


2016-08-27 2:21 GMT+02:00 monty <[hidden email]>:
2^-5 = (1/32)


Ah, ok.