Making cpp formatting a bit nicer
Don't use isfinite on Android, it doesn't seem to work

See https://rt.cpan.org/Ticket/Display.html?id=92671