Add to_hex, to_octal and to_binary.

This commit is contained in:
Stephen Chung
2021-06-16 23:49:18 +08:00
parent a9ed434c73
commit 40e33fa6f9
2 changed files with 146 additions and 1 deletions

View File

@@ -23,6 +23,7 @@ New features
* An integer value can now be indexed to get/set a single bit.
* The `bits` method of an integer can be used to iterate through its bits.
* New `$bool$`, `$int$`, `$float$` and `$string$` expression types for custom syntax.
* New methods `to_hex`, `to_octal` and `to_binary` for integer numbers.
Version 0.20.2