In order to find a decimal number has fractional part in it,we can use the following check. decimal price=1.2334; if(price %1==0) // a whole number else // a fraction. A cute little piece of code that does the trick.
I have 11+ years of experience in Software development. I am proud to be in the top 5 Multi-Tenancy answerers @ Stackoverflow. I have worked with C#, Java, MySQL, SQL Server, Multi-tenancy, AWS, Azure, Terraforms, Java with Spring boot and Python, groovy, bat scripts