I am currently creating a new maths based application and would like to know how you add, subtract and multiply decimals and integers. So for example say I have 2.5 and want to add 2, the answer should be 4.5 but I always seem to get 2.7.
Please help, thanks in advance.
Loading
VulpesPosted Aug 26, 2011, 2:05 PM
If you're using the decimal type rather than double, then suffix both decimals and integers with 'm'.