about | help | code help+videos | done | prefs |
Given a rational number, return its integer part. ***This is just int(x), but if we changed it to decimal part, then it would be less trivial.*** integerPart(12.9) → 12 integerPart(35) → 35 integerPart(-77.2) → -77 ...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: 150 Post-solution available
Copyright Nick Parlante 2017 - privacy