BigIntView.opCast

  1. T opCast()
    struct BigIntView(W, WordEndian endian = TargetEndian)
    scope const
    T
    opCast
    (
    T
    bool wordNormalized = false
    bool nonZero = false
    )
    ()
    if (
    isFloatingPoint!T &&
    isMutable!T
    )
    if (
    is(Unqual!W == ubyte) ||
    is(Unqual!W == ushort)
    ||
    is(Unqual!W == uint)
    ||
    is(Unqual!W == ulong)
    )
  2. T opCast()
  3. T opCast()
  4. BigIntView!V opCast()

Examples

auto a = cast(double) BigIntView!size_t.fromHexString("-afbbfae3cd0aff2714a1de7022b0029d");
assert(a == -0xa.fbbfae3cd0bp+124);
auto a = cast(double) BigIntView!size_t.fromHexString!(char, true)("-afbb_fae3_cd0a_ff27_14a1_de70_22b0_029d");
assert(a == -0xa.fbbfae3cd0bp+124);

Meta