Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Python3-8 committed Nov 2, 2022
1 parent 5f8afe1 commit 8454a0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Integer(66666)
Integer(41976)
>>> n1 * n2
Integer(670592745)
# Both true and floor division return an Integer and perform the same functionality (as of now)
# True division will return a Float, and floor division an Integer
>>> n2 / n1
Float(4.400243013365737)
>>> n2 // n1
Expand All @@ -62,7 +62,7 @@ Integer(66666)
>>> n1.repr_in_base(2, digits=['--', '++'], mode='l')
['++', '++', '--', '--', '--', '--', '--', '--', '++', '++', '++', '--', '--', '++']
# Floats can be converted back and forth too
>>> Float(10.1, 2)
>>> Number(10.1, 2) # Constructs a Float
Float(2.5)
>>> Float(10.1, 2).repr_in_base(8)
'2.4'
Expand Down

0 comments on commit 8454a0c

Please sign in to comment.