| about | help | code help+videos | done | prefs | 
| Given a double input representing an amount of money, return just the number of cents in the currency, truncated if the double input has fractional cents. Precondition: input will be a non-negative number (no special values like infinity or NaN) apcsaPrimitivesCents(0.55) → 55 apcsaPrimitivesCents(3.45) → 45 apcsaPrimitivesCents(4.444444) → 44 ...Save, Compile, Run (ctrl-enter) | 
Progress graphs: 
 Your progress graph for this problem
 Random user progress graph for this problem 
 Random Epic Progress Graph
Difficulty: 100
Copyright Nick Parlante 2017 - privacy