Skip to content

Commit aa8c95f

Browse files
author
Milan K
authored
Update README.md
1 parent 482aae2 commit aa8c95f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ Both rely on conversion to Float32 to perform any arithmetic operation, similar
1212
# Example use
1313

1414
```julia
15-
julia> using .Float8s
15+
julia> using Float8s
1616

1717
julia> a = Float8(4)
18-
Float8(0x50)
18+
Float8(4.0)
1919

20-
julia> b = Float8(2)
21-
Float8(0x40)
20+
julia> b = Float8(3.14159)
21+
Float8(3.125)
2222

2323
julia> a+b
24-
Float8(0x58)
24+
Float8(7.0)
2525

26-
julia> Float32(a+b)
27-
6.0f0
26+
julia> sqrt(a)
27+
Float8(2.0)
2828

29-
julia> Float32(sqrt(a))
30-
2.0f0
29+
julia> a^2
30+
Inf8
3131
```
3232
Most arithmetic operations are implemented. If you would like to have an additional feature, raise an [issue](https://github.com/milankl/Float8s.jl/issues).
3333

0 commit comments

Comments
 (0)