Float to integer | Substance 3D Designer

Float to integer

In: Substance model graphs > Cast

Description

The Float to integer node converts an input float value into an output integer value with your selected rounding method.

Parameters

  • Mode Integer (selects an Enum index)
    The rounding method applied to the input float value:
    • Ceil: (ceiling) Round up;
    • Floor: Round down;
    • Round: round down if x % 1 < 0.5 OR round up if x % 1 >= 0.5.
  • Value Float
    The value converted to integer.

Example Images

 Adobe

Get help faster and easier

New user?