fp_g_str

Description

Convert 32 bit binary floating point value to ASCII decimal string equivalent using either simple decimal point notation or scientific notation depending on size of number to be printed

Definition

fp_g_str(char *ptr, float val, byte width, byte precision)

Library

LIB/str_fp_lib.bas

Usage

On entry:
ptr is a pointer to a RAM buffer where the string is to be written
val is a 32 bit binary floating point value to be converted
width is the maximum width of the string to be generated (NOTE this does not include the extra NUL terminating character added to the end of the string)
precision is the maximum number of digits after the decimal
On exit:
There is no return value