# Rounding in a Formula Quiz Question: Thoughts?

Idea created by jsparks on Sep 15, 2015
Open for Voting
Score28

Greetings to my Canvas Community Family,

As we look to make long-term improvements to the Quizzing Engine in Canvas, I would appreciate feedback on the following issue. This proposed solution would provide an interim stop-gap as we engage in longer-term planning. I am specifically talking about large numbers and rounding of decimals in Quizzes:

Currently:

When a whole number is greater than 20 digits it will be displayed in scientific notation. When a whole number has less than 20 digits it will be displayed as normal. When a number has any decimal value greater than 4 digits, it is rounded. For example:

• Any whole number larger than 20 digits will be displayed in scientific notation:
• 204,587,963,254,123,698,547,856,423 is converted to 2.0458796325412367e20
• Any whole number less than 20 digits will be displayed as normal:
• 1,547,256,125,256,745 is displayed "as is"
• Any answer with decimals will always round to 4 places:
• 12,345.123456 is rounded to 12,345.1235
• 0.987654321 is rounded to 0.9877
• 0.00004 is displayed as zero as 4 is rounded down to 0

Proposed:

When a whole number is greater than 13 digits it will be displayed in scientific notation. When a whole number has less than 13 digits it will be displayed as normal. When a number has any decimal value greater than 13 digits, it is rounded. For example:

• Any whole number larger than 13 digits will be displayed in scientific notation:
• 204,587,963,254,123,698,547,856,423 is converted to 2.045879632541e29
• Any whole number less than 13 digits will be displayed as normal:
• 7,256,125,256,745 is displayed "as is"
• Any answer with decimals will always round to 13 digits:
• 12,345.12345678901234 is rounded to 1.234512345678e4
• 0.98765432186587 is rounded to 0.9876543218659
• 0.00004 is displayed "as is"

Why 13 digits?  Trillions, my friends. Trillions.  This answer allows for the display of whole numbers up to trillions while also allowing for an increased display of digits in decimal values.

This change will only impact quizzes. We'd appreciate your feedback on this matter.

Thank you,

Jason