BRL-CAD
units.h File Reference
#include "common.h"
#include "bu/defines.h"
#include "bu/parse.h"
#include "bu/vls.h"
Include dependency graph for units.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BU_HN_DECIMAL   0x01
 
#define BU_HN_NOSPACE   0x02
 
#define BU_HN_B   0x04
 
#define BU_HN_DIVISOR_1000   0x08
 
#define BU_HN_IEC_PREFIXES   0x10
 
#define BU_HN_GETSCALE   0x10
 
#define BU_HN_AUTOSCALE   0x20
 

Functions

double bu_units_conversion (const char *str)
 
const char * bu_units_string (const double mm)
 
struct bu_vlsbu_units_strings_vls (void)
 
const char * bu_nearest_units_string (const double mm)
 
double bu_mm_value (const char *s)
 
void bu_mm_cvt (const struct bu_structparse *sdp, const char *name, void *base, const char *value, void *data)
 
int bu_humanize_number (char *buf, size_t len, int64_t quotient, const char *suffix, size_t scale, int flags)
 
int bu_dehumanize_number (const char *str, int64_t *size)