Tweaked btScalar.d