diff --git a/docs/native-numbers.md b/docs/native-numbers.md index cd88e3a2..8bdc95e2 100644 --- a/docs/native-numbers.md +++ b/docs/native-numbers.md @@ -27,12 +27,12 @@ Positive numbers _must_ be written with a `+` sign, otherwise they'll be interpr Numbers can also be written in binary or hexadecimal form. Underscores can be optionally used as digit separators to make large numbers more readable. -````rs +```rs decimal = 1194684 binary = 0b100_100_011_101_010_111_100 hexadecimal = 0x123_abc hex_signed = -0xbeef - +``` ### F24 @@ -45,7 +45,7 @@ pi = +3.1415926535897932384626433 # Will get rounded to 24bit float a_millionth = 0.000001 zero = 0.0 minus_zero = -0.0 -```` +``` ### Mixing number types