to_mm2 function

Requirements.Units.Conversions.to_mm2  ยท source

Icon of to_mm2

Convert from square metre to square millimetre

Extends Modelica.Units.Icons.Conversion

Convert from square metre to square millimetre: mm2 := 1000000*m2. The input m2 is the value in square metre (type Modelica.Units.SI.Area), the output mm2 the value in square millimetre (type NonSI.Area_mm2). The inverse is from_mm2.

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_mm2(from_mm2(7)).

Copyright © 2026 Model Based Innovation LLC. All rights reserved.

Inputs

NameTypeDescription
m2 inputSI.AreaValue in square metre

Outputs

NameTypeDescription
mm2 outputNonSI.Area_mm2Value in square millimetre