fix parseInt, parseFloat to comply with specification