Index: ut_units.cpp =================================================================== RCS file: /u2/cvsroot/abi/src/af/util/xp/ut_units.cpp,v retrieving revision 1.28 diff -u -r1.28 ut_units.cpp --- ut_units.cpp 2000/08/09 01:38:11 1.28 +++ ut_units.cpp 2000/08/22 12:49:17 @@ -272,6 +272,10 @@ return 0; double f = UT_convertDimensionless(s); + + if (f == 0) + return 0; + const char *p = s; while ((*p) && (isdigit(*p) || (*p == '-') || (*p == '.'))) {