Unit conversion

Info about design forms features
PetrS
Site Admin
Posts: 181
Joined: 11 Jul 2014, 13:55

Unit conversion

Postby PetrS » 15 Jul 2014, 14:25

Function CUnit
Version 5.1.14 and higher

Function CUnit converts value from one physical unit to another.

Syntax:
double X = CUnit(double Value, string TargetUnit)
or
double X = CUnit(double Value, string TargetUnit, string SourceUnit)

Notes:
If no SourceUnit is set, function convert value from basic SI unit to the TargetUnit.

Source and Target unit must be defined by a static string (not a variable, function, ...).
Attachments
ConvertUnit.cls
(34.96 KiB) Downloaded 407 times
Ing. Petr Slepicka
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 5 guests