apex lo<=val<=hi
bug in apex