to_cm2 function
Requirements.Units.Conversions.to_cm2
ยท source
Convert from square metre to square centimetre
Extends Modelica.Units.Icons.Conversion
Convert from square metre to square centimetre: cm2 := 10000*m2. The input m2 is the value in square metre (type Modelica.Units.SI.Area), the output cm2 the value in square centimetre (type NonSI.Area_cm2). The inverse is from_cm2.
The conversion is a multiplication by a constant factor, without offset, so it converts differences and rates alike; it is exact up to floating-point rounding and has no limits on the input. The function is inlined. A check model uses it to give a variable of the model in the unit in which the requirement states it; see Conversions. Examples.Elementary.Units.Conversions asserts it through the round trip to_cm2(from_cm2(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
m2 input | SI.Area | Value in square metre |
Outputs
| Name | Type | Description |
|---|---|---|
cm2 output | NonSI.Area_cm2 | Value in square centimetre |