Fixed.this

Create a new Fixed, given an integral

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

Examples

auto p1 = Fixed!4(1);
assert(p1.value == 1 * 10 ^^ 4);

auto p2 = Fixed!5(1);
assert(p2.value == 1 * 10 ^^ 5);

Meta