| void hel_MathExtractDigits | ( | u32 | Value, | |
| u8 * | pOut, | |||
| u32 | nDigits | |||
| ) |
Extract digits from a value.
The hel_MathExtractDigits can be used to extract digits from a given value. This is handy when dealing with score display.
| [in] | Value | Source value from where to extract the digits from |
| [out] | pOut | Destination buffer which receives the extracted digits |
| [in] | nDigits | Amount of digits to extract |
1234. The result is stored in Buffer which will contain the following values afterwards: 1,2,3,4 u8 Buffer[4];
hel_MathExtractDigits(1234, Buffer, 4);
1.5.3