Mercurial > octave
comparison etc/NEWS.7.md @ 31061:20aa91d357be stable
NEWS.7.md: minor correction about hexadecimal constants
NEWS.7.md: An 8-digit hexadecimal string yields a uint32 not a uint64.
If the input is longer than 8 digits then it's uint64.
author | Arun Giridhar <arungiridhar@gmail.com> |
---|---|
date | Thu, 02 Jun 2022 14:30:06 -0400 |
parents | 7201d9b7cea6 |
children | ebba770cd852 505ec2f4e16f |
comparison
equal
deleted
inserted
replaced
31060:7201d9b7cea6 | 31061:20aa91d357be |
---|---|
118 endif | 118 endif |
119 | 119 |
120 - Binary and hexadecimal constants like `0b101` and `0xDEADBEEF` now | 120 - Binary and hexadecimal constants like `0b101` and `0xDEADBEEF` now |
121 create integers (unsigned by default) with sizes determined from the | 121 create integers (unsigned by default) with sizes determined from the |
122 number of digits present. For example, `0xff` creates a `uint8` value | 122 number of digits present. For example, `0xff` creates a `uint8` value |
123 and `0xDEADBEEF` creates a `uint64` value. You may also use a suffix of | 123 and `0xDEADBEEF` creates a `uint32` value. You may also use a suffix of |
124 the form `u8`, `u16`, `u32`, `u64`, `s8`, `s16`, `s32`, or `s64` to | 124 the form `u8`, `u16`, `u32`, `u64`, `s8`, `s16`, `s32`, or `s64` to |
125 explicitly specify the data type to use (`u` or `s` to indicate unsigned | 125 explicitly specify the data type to use (`u` or `s` to indicate unsigned |
126 or signed and the number to indicate the integer size). | 126 or signed and the number to indicate the integer size). |
127 | 127 |
128 Binary constants are limited to 64 binary digits and hexadecimal | 128 Binary constants are limited to 64 binary digits and hexadecimal |