Skip to content

Commit 7741d8d

Browse files
authored
Merge pull request #4 from JeffreySarnoff/about_halfs
show rounding half integers to nearest even
2 parents 5f383dd + fec0ea4 commit 7741d8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ ERROR: InexactError()
2020
julia> RInt(7.2) # but not with a rounding integer
2121
7
2222

23+
julia> (map(RInt, 1.5:1:4.5)...) # rounds half integers to nearest even
24+
(2, 2, 4, 4)
25+
2326
julia> a = Vector{RUInt8}(2)
2427
2-element Array{RoundingIntegers.RUInt8,1}:
2528
0x42

0 commit comments

Comments
 (0)