How can I write a program that indicates a number if it is integer or not?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I write a program that indicates a number if it is integer or not?
0 Kommentare
Antworten (3)
James Tursa
am 15 Mär. 2018
doc floor
doc ceil
doc round
What happens if you use one of these functions and compare the result to the original value?
0 Kommentare
Roger Stafford
am 15 Mär. 2018
Bearbeitet: Roger Stafford
am 15 Mär. 2018
If n is your number, then
round(n)==n
is true if and only if n is an integer
0 Kommentare
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!