[#mp_units-is_integral_scaling] = xref:mp_units.adoc[mp_units]::is_integral_scaling :relfileprefix: ../ :mrdocs: Returns `true` if the scaling factor from `from` to `to` is an exact positive integer. == Synopsis Declared in `<mp‐units/framework/value_cast.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] consteval bool is_integral_scaling( auto from, auto to); ---- == Description This is the key predicate used by the default `implicitly_scalable` to decide whether conversions between integer‐like representation types are non‐truncating (and therefore may be implicit). For example, `m → mm` has an integral factor (×1000), so integer conversions in that direction are implicit; `mm → m` has a fractional factor (÷1000), so they are explicit. == Parameters [cols="1,4"] |=== |Name|Description | *from* | source unit | *to* | target unit |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#