Test integerness: Difference between revisions
Content added Content deleted
Line 441: | Line 441: | ||
=={{header|C#}}== |
=={{header|C#}}== |
||
<lang c sharp> |
<lang c sharp> |
||
namespace Test_integerness |
namespace Test_integerness |
||
{ |
{ |
||
Line 545: | Line 543: | ||
IS_INTEGER = true; |
IS_INTEGER = true; |
||
else if((decimal)TOLERANCE >= (decimal)Math.Abs( Math.Round(NUMBER,0) - NUMBER )) |
else if((decimal)TOLERANCE >= (decimal)Math.Abs( (decimal)Math.Round(NUMBER,0) - (decimal)NUMBER )) |
||
IS_INTEGER_T = true; |
IS_INTEGER_T = true; |
||