It looks like you're new here. Sign in or register to get started.
static void strRTrimZeroes(Args _args) { str txt = '505.000'; str ch = '0'; str result; str tmp; int i = strLen(txt); ; while(true) { tmp = subStr(txt, i, 1); if(i && tmp == ch) { i--; } else { break; } } result = strDel(txt, i+1, maxInt()); info(result); }
Comments