from_ms function
Requirements.Units.Conversions.from_ms
ยท source
Convert from millisecond to second
Extends Modelica.Units.Icons.Conversion
Convert from millisecond to second: s := ms/1000. The input ms is the value in millisecond (type NonSI.Time_ms), the output s the value in second (type Modelica.Units.SI.Time). The inverse is to_ms.
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_ms(<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_ms(from_ms(7)).
Copyright © 2026 Model Based Innovation LLC. All rights reserved.
Inputs
| Name | Type | Description |
|---|---|---|
ms input | NonSI.Time_ms | Value in millisecond |
Outputs
| Name | Type | Description |
|---|---|---|
s output | SI.Time | Value in second |