|
||
char *format_double ( double val, char *buf, int notation, int measure )
double val; // a double value char *buf; // character buffer to receive formatted value int notation; // notation selector int measure; // unit of measurement selector
|
|
|||||||||||||||||||||||||||
Synopsis |
#include "silver.h"
The format_double function formats the double value specified by val into the char character buffer pointed to by buf , subject to notation and measurement .
|
|
||||||||||||||||||||||||||
Parameters |
val is any double value. buf is the address of a character buffer. notation is one of the following values (defined in silver.h):
measure may be one of the following (defined in silver.h)
|
|
||||||||||||||||||||||||||
Return Value |
format_double returns buf .
|
|
||||||||||||||||||||||||||
See Also |
cv_get , cv_set to obtain or modify current notation and units of measure settings. |
|
||||||||||||||||||||||||||
|
|