to_cm2 function

Requirements.Units.Conversions.to_cm2  ยท source

Icon of to_cm2

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

NameTypeDescription
m2 inputSI.AreaValue in square metre

Outputs

NameTypeDescription
cm2 outputNonSI.Area_cm2Value in square centimetre