to_ft function

Requirements.Units.Conversions.to_ft  ยท source

Icon of to_ft

Convert from metre to foot

Extends Modelica.Units.Icons.Conversion

Convert from metre to foot: ft := m/0.3048. The input m is the value in metre (type Modelica.Units.SI.Length), the output ft the value in foot (type NonSI.Length_ft). The inverse is from_ft.

The international foot, 0.3048 m exactly.

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_ft(from_ft(7)).

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

Inputs

NameTypeDescription
m inputSI.LengthValue in metre

Outputs

NameTypeDescription
ft outputNonSI.Length_ftValue in foot