Changes between Version 3 and Version 4 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/FormatGrossWt
- Timestamp:
- 08/20/10 10:05:46 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Weight/FormatGrossWt
v3 v4 3 3 4 4 {{{ 5 string FormatGrossWt(int nScale = process_scale, int len = 7);5 string FormatGrossWt(int nScale, int nLen = 7); 6 6 7 char* FormatGrossWt(int nScale = process_scale, char* pszBuffer, int len = 7);7 char* FormatGrossWt(int nScale, char* pszBuffer, int nLen = 7); 8 8 }}} 9 9 … … 11 11 12 12 * nScale - scale number 13 * len - length to format the string, spaces will be padded to the left.13 * nLen - length to format the string, spaces will be padded to the left. 14 14 15 15 == Return Value == … … 19 19 == Remarks == 20 20 21 This will format the raw gross weight into appropriate divisions and add zeros for zero weight if necessary based on the interval. For example, for interval of 20 lb is specified and the weight is zero the output will be " 00". 22 21 23 == Examples == 22 24 23 25 {{{ 26 string strWt = FormatGrossWt(1); 27 DisplayText(0, 0, strWt); 24 28 }}} 25 29 26 30 {{{ 31 char szWt[20]; 32 FormatGossWt(1, szWt); 33 DisplayText(0, 0, szWt); 27 34 }}} 28 35 29 36 == See Also == 30 37 31 * GetGrossWt32 38 * FormatTareWt 39 * FormatNetWt 40 * FormatWt 41