src/utils/math.c
void u8toa_2dz(u8 const u8val, char* str) {
   u8 v = u8val; 
   if      (v > 199) { v -= 200; }
   else if (v >  99) { v -= 100; }
   if (v > 9) {
      u8 const d = v/10;
      *str = '0' + d; ++str;
      v -= d*10;
   } else {
      *str = '0'; ++str;
   }
   *str = '0' + v;
   ++str; *str=0;
}
//--------------------------------------------------------------------------------
// u8toa_2dz() : Converts the 2 right digits of a u8 value into ascii.
//    It ignores the most-significant decimal digit if present, outputing
//    a 2-character zero-terminated string in [00-99].
//
u8toa_2dz() : Converts the 2 right digits of a u8 value into ascii.
It ignores the most-significant decimal digit if present, outputing
a 2-character zero-terminated string in [00-99].
u8toa_2dz () : Converts the 2 right digits of a u8 value into ascii . It ignores the most - significant decimal digit if present outputing a 2 - character zero - terminated string in [ 00 - 99 ] .
void u8toa_2dz(u8 const u8val, char* str) {
   u8 v = u8val; 
   if      (v > 199) { v -= 200; }
   else if (v >  99) { v -= 100; }
   if (v > 9) {
      u8 const d = v/10;
      *str = '0' + d; ++str;
      v -= d*10;
   } else {
      *str = '0'; ++str;
   }
   *str = '0' + v;
   ++str; *str=0;
}
void u8toa_2dz ( u8 const u8val , char * str ) { u8 v = u8val ; if ( v > 199 ) { v -= 200 ; } else if ( v > 99 ) { v -= 100 ; } if ( v > 9 ) { u8 const d = v / 10 ; * str = ' ' + d ; ++ str ; v -= d * 10 ; } else { * str = ' ' ; ++ str ; } * str = ' ' + v ; ++ str ; * str = 0 ; }
u8toa_2dz() : Converts the 2 right digits of a u8 value into ascii.
u8toa_2dz () : Converts the 2 right digits of a u8 value into ascii .