bc.digits

Digits after the decimal place

Prototype

old = bc.digits (n)

Description

Do subsequent calculations to n digits after the decimal point.

eg.

bc.digits (20)
a = bc.number (5.5) + 1
print (a)  --> 6.50000000000000000000
Returns the old number of digits, so you could save them, change them, and then restore them.

Lua functions

Topics