Better handling of large numbers in calculator