UInt.signBit

  1. bool signBit()
    struct UInt(size_t size)
    const @property
    bool
    signBit
    ()
    ()
    if (
    size % (size_t.sizeof * 8) == 0 &&
    size >= (size_t.sizeof * 8)
    )
  2. void signBit(bool value)

Examples

auto a = UInt!128.fromHexString("dfbbfae3cd0aff2714a1de7022b0029d");
assert(a.signBit);
a.signBit = false;
assert(a == UInt!128.fromHexString("5fbbfae3cd0aff2714a1de7022b0029d"));
assert(!a.signBit);
a.signBit = true;
assert(a == UInt!128.fromHexString("dfbbfae3cd0aff2714a1de7022b0029d"));

Meta