std-rtos

Synopsis

(std-rtos <num>)

Description

std-rtos is a portable way to convert a real to the exact string representation. It needs no Acad Connection (Stand-Alone) and always tries to represent the exactest possible representation of the number.

In detail it also handles overlarge integers which are printed as integers, not as not-readable exponential real numbers.

However with the problem of loosing digits in the floating point format not all numbers may can represented 100% exactly. 14 digits are usually exact, sometimes also 15 or 16.

Example

(std-rtos 2.01)  => "2.01"
(std-rtos 12340000000000)  => "12340000000000"

Arguments

num: a number

Return Value

A string.

Side Effects

None.

Module

(std-require 'STDSTR)

Defined in STDSTR

#- SMALL