예제 #1
0
static void _DispFloatFix(float f, char Len, char Decs, int DrawPlusSign) {
    f *= GUI_Pow10[Decs];
    f += 0.5;
    f = (float) floor (f);
    if (DrawPlusSign)
        GUI_DispSDecShift((long)f, Len, Decs);
    else
        GUI_DispDecShift((long)f, Len, Decs);
}
예제 #2
0
파일: GUIVal.c 프로젝트: silview/C100A
/*********************************************************************
*
*       GUI_DispDec
*/
void GUI_DispDec(I32 v, U8 Len) {
  GUI_DispDecShift(v, Len,0);
}