Loading...
Engaged Employer
which number can be represented as two decimal?
Anonymous
bool fitsInTwoDecimal(float a) { return ((a*100) - (int)(a*100)) == 0; }
In base-2 only rationals with denominators that are powers of 2 (such as 1/2 or 3/16) are terminating. Any rational with a denominator that has a prime factor other than 2 will have an infinite binary expansion. (Source wiki)
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalized job recommendations and updates by starting your searches.