BigUIntView.opCast

  1. T opCast()
    struct BigUIntView(W, WordEndian endian = TargetEndian)
    scope const
    T
    opCast
    (
    T
    bool wordNormalized = false
    bool nonZero = false
    )
    ()
    if (
    isFloatingPoint!T &&
    isMutable!T
    )
    if (
    __traits(isUnsigned, W)
    )
  2. T opCast()
  3. T opCast()
  4. BigUIntView!V opCast()

Examples

auto a = cast(double) BigUIntView!size_t.fromHexString("afbbfae3cd0aff2714a1de7022b0029d");
assert(a == 0xa.fbbfae3cd0bp+124);
assert(cast(double) BigUIntView!size_t.init == 0);
assert(cast(double) BigUIntView!size_t([0]) == 0);

Meta