Patch avoids an unnecessary float->double conversion to save a small amount of codespace. -Richard