size=150Extension of functions Round, RoundUp, RoundDown/size
Version: 0.1.2 and higher
Functions Round, RoundUp and RoundDown now accepts up to 3 parameters:
list
*double Value - A double-precision number to be rounded./*:m
*double Decimals - The number of decimal places in the return value./*:m
*string Unit - Physical unit, in which the value is expressed./*:m/list:u
Each physical value (value with physical unit) is internally stored in base SI units.
Calling Round functions with 3. parameter (Unit) allows user to define, in which physical unit is the value expressed for rounding procedure.
See attached example for more details.
Note: Example contains three layouts, with various setting of UnitDrawingStyle. See all three layouts for better understanding how physical values (number with physical unit) are handled.
Round, RoundUp, RoundDown
Round, RoundUp, RoundDown
- Attachments
-
- RoundUnits.cls
- (58.82 KiB) Downloaded 412 times
Ing. Petr Slepicka
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!
DesignForms Online
Engineering calculations online - EuroCode, AISC, statics
Automate your static calculations today!
Return to “Design forms features”
Who is online
Users browsing this forum: No registered users and 2 guests