Test integerness: Difference between revisions

m
make a separate line for the formula
(→‎{{header|Perl 6}}: adding extra credit)
m (make a separate line for the formula)
Line 5:
To be clear, we're not talking about whether the number is stored with the specific data type for integers, but instead we want to test whether there exists an integer with the exact same value. In other words, we want to test for integerness in the mathematical sense, not as a data type.
 
For extra credit, extend the test forto complex numbers. Remember that <math>\mathbf{Z}\subset\mathbf{C}</math>.:
 
<math>\mathbf{Z}\subset\mathbf{C}</math>.
 
 
1,934

edits