bc.tostring

Converts to a string

Prototype

s = bc.tostring (n)

Description

Converts a big number to a string (eg. for printing).

eg.

bc.digits (40)
a = bc.sqrt (2)
s = bc.tostring (a)
print (s)  --> 1.4142135623730950488016887242096980785696

Lua functions

Topics