SilverScreen Solid Modeler

format_double

format_double

Previous topic Next topic  

format_double

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

 

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):

 

Name

Value

SCIENCE

1

DECIMAL

2

ENGINEER

3

ARCHITECT

4

FRACTIONAL

5

 

measure may be one of the following (defined in silver.h)

 

Name

Value

FEET

1

INCHES

2

METERS

3

CENTIMETERS

4

MILLIMETERS

5

GENERIC

6

 

 

Return Value

format_double returns buf .

 

 

See Also

cv_get , cv_set to obtain or modify current notation and units of measure settings.