using ColorBitstring, SetRounding
Copyright By PowCoder代写 加微信 powcoder
printlnbits(Float16(1/3, RoundNearest))
printlnbits(Float16(1/3, RoundUp))
printlnbits(Float16(1/3, RoundDown))
0011010101010101
0011010101010110
0011010101010101
y = 2.0^(-53)
z = setrounding(Float64, RoundUp) do
printlnbits(z)
0011111111110000000000000000000000000000000000000000000000000001
(x + y) + y
0.3332519531250002
程序代写 CS代考 加微信: powcoder QQ: 1823890830 Email: powcoder@163.com