Macaulay2 » Documentation
Packages » Macaulay2Doc :: size2
next | previous | forward | backward | up | index | toc

size2 -- number of binary digits to the left of the point

Synopsis

Description

This function is not implemented for rational numbers.
i1 : size2 4

o1 = 3
i2 : size2 3

o2 = 2
i3 : size2 4.

o3 = 3
i4 : size2 3.99999999

o4 = 2
i5 : size2 0

o5 = -1073741824
i6 : size2 0.

o6 = -1073741824
i7 : size2 (1/0.)

o7 = 1073741823
i8 : size2 (1/0.-1/0.)

o8 = 1073741823

Ways to use size2 :

For the programmer

The object size2 is a compiled function.