PDA

View Full Version : NBit Math Question



rocket_troy
- 10th October 2023, 00:01
Can anyone confirm that Darrel Taylor's NBit math routines are all *un*signed? ie. if I had negative numbers, I'm restricted to PBP's longs for processing?

Also, is there any way of converting a number exceeding a long type to a string to send over serial or display?

Thanks,

Troy

mpgmike
- 15th October 2023, 02:56
You can use multiple Bytes, Words, and even Longs and manually manipulate them (the way ASM would do it). Then just start shuffling out the string, starting with either LOWBYTE or HIGHBYTE. A bit of work, but it is doable.