Fixed.this

Create a new Fixed give a floating point number

  1. this(V i)
  2. this(T i)
    struct Fixed(int scaling, V = long, Hook = KeepScalingHook)
    this
    (
    T
    )
    (
    const T i
    )
    if (
    isFloatingPoint!T
    )
    if (
    isIntegral!V
    )
  3. this(Range s, bool round)

Examples

auto p = Fixed!4(1.1);
assert(p.value == 1.1 * 10 ^^ 4);

Meta