BigNum.todouble(BigNum)

Return the BigNum value as a double. Does not modify the value of the BigNum.

Example
x = bn:todouble()