Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 6 students

Data Type For Precise Decimal Arithmetic

< Prev
Next >

A banking application needs to represent account balances, such as $1,234.56. The application must perform calculations, like computing interest, that require exact decimal arithmetic to avoid rounding errors. Which data type is most appropriate for storing these balances?

A

BigDecimal (reference type)

B

int

C

boolean

D

double

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question
Mark for review

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1kaisuki11 0m 00s 100
#2lsj0803092211 0m 12s 88
#3liuwilliam07241012 0m 23s 67
#4chunxiangxu.cxu01 0m 18s -28
#5richa.tuli02 2m 35s -175
#6bommasam00026 7m 00s -260
#7zgj0731041734 22m 50s -1,080
Items per page:
10
1 – 7 of 7
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|FAQ