No matching definitions.

tur/bits

stdlib/bits.tur

bitwise operations not expressible as arithmetic in Turmeric.

Since: Phase B1

defn

bit-shr

(bit-shr [x :int n :int] :int)

logical (unsigned) right shift of x by n bits.

xvalue to shift
nnumber of bit positions to shift right

x shifted right by n bits (unsigned/logical shift; 0-fills high bits).

(bit-shr -1 1)  ; => 9223372036854775807  (fills with 0, not sign bit)

Since: Phase B1

defn

println-float

(println-float [x :float decimals :int] :nil)

print a float with the specified number of decimal places.

xfloating-point value to print
decimalsnumber of decimal places (clamped to 0--17)

:nil

(println-float 3.14159 6)  ; prints "3.141590"

Since: Phase B1