cvs_f

Command: cvs_f


Synopsis

x q cvs_f -> str
x [p q] cvs_f -> str

Description


x q cvs_f -> str
converts a double (or integer) number x into a string str with a specified number q of digits after the decimal point

x [p q] cvs_f -> str
puts in addition p minus IntegerPart(x) zeros in front of the string (nothing happens if p is smaller than the length of x's integer part).

File
lib/sli/sli-init.sli
Author
Tom Tetzlaff
Examples


2.3456 3 cvs_f -> (2.346)
2.3456 0 cvs_f -> (2)
2.3456 neg 2 cvs_f -> (-2.35)
2.3456 [2 3] cvs_f -> (02.346)
2.3456 neg [2 3] cvs_f -> (-02.346)
222.3456 [2 3] cvs_f -> (222.346)

SeeAlso