API Reference > Other Classes > OdUnitsFormatter Class > OdUnitsFormatter Methods > OdUnitsFormatter::formatL Method
OdUnitsFormatter::formatL Method
Syntax
C++
static OdString formatL(double value, LUnits lUnits, int precision, int dimzin, int unitMode, const OdChar* decsep = 0, const OdChar* thsep = 0);
Parameters 
Description 
double value 
[in] Value to format.  
LUnits lUnits 
[in] Length units.  
int precision 
[in] Number of decimal places.  
int dimzin 
[in] A combination of ZeroSuppressionFlags.  
int unitMode 
[in] UNITMODE value.  
const OdChar* decsep = 0 
[in] Decimal separator.  
const OdChar* thsep = 0 
[in] Thousands separator. 

Returns the specified distance value as a string.

  • A zero value for decsep specifies the default seoarator is to be used.
  • A zero value for thsep specifies that no separator is to be used.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.