You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function should return a byte array containing the digits of a given integer, with the most significant digit being the first element of the array and the least significant digit being the last element.
For negative integers, only the digits are to be returned. The sign of the number will be discarded.
The function should work for different bases. Returned digits are in decimal, so the digits value of 15 in hex will be [15], while the digits of the same value in decimal will be [1,5].
Zero will be treated as a special case: [0] will be returned rather than an empty array.
The text was updated successfully, but these errors were encountered:
delphidabbler
added
duplicate
This issue or pull request already exists
completed
Issue completed and committed to develop. To be closed on next release
and removed
enhancement
New feature or request
completed
Issue completed and committed to develop. To be closed on next release
labels
Jan 7, 2025
Name the function,
DigitsOf
.The function should return a byte array containing the digits of a given integer, with the most significant digit being the first element of the array and the least significant digit being the last element.
For negative integers, only the digits are to be returned. The sign of the number will be discarded.
The function should work for different bases. Returned digits are in decimal, so the digits value of
15
in hex will be[15]
, while the digits of the same value in decimal will be[1,5]
.Zero will be treated as a special case:
[0]
will be returned rather than an empty array.The text was updated successfully, but these errors were encountered: