Fixed.decimalPart

sign doesn't matter, for instance those two calls are equivalent: - fix2(-3).decimalPart = -14 // produces -3.14 - fix2(-3).decimalPart = 14 // same

if the argument is too big, it is truncated

  1. long decimalPart()
  2. long decimalPart(long newDecimalPart)
    struct Fixed(uint scale)
    nothrow
    long
    decimalPart

Meta