from_mm2 function

Requirements.Units.Conversions.from_mm2  ยท source

Icon of from_mm2

Convert from square millimetre to square metre

Extends Modelica.Units.Icons.Conversion

Convert from square millimetre to square metre: m2 := (1/1000000)*mm2. The input mm2 is the value in square millimetre (type NonSI.Area_mm2), the output m2 the value in square metre (type Modelica.Units.SI.Area). The inverse is to_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 write a value of a requirement in the unit in which the requirement states it, from_mm2(<value as written>), so that the model reads like the statement; see Conversions. Examples.Elementary.Units.Conversions asserts its factor and the round trip to_mm2(from_mm2(7)).

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

Inputs

NameTypeDescription
mm2 inputNonSI.Area_mm2Value in square millimetre

Outputs

NameTypeDescription
m2 outputSI.AreaValue in square metre