Is there a way? Lmk if there is.
Is there a way? Lmk if there is.
If it's an integer, it's a whole number. If it's an extended, using modulus to check the original number against a rounded number will work (the remainder has to be zero here).
:-)
I know a whole number is an Integer, but is there a way I can check if it's an integer?
SCAR Code:program New;
var
a:extended;
begin
a := 1.0;
if Extended(round(a)) = a then
writeln('yes')
else
writeln('no');
if ceil(a) - a = 0.0 then
writeln('yes')
else
writeln('no');
if int(a) - a = 0.0 then
writeln('yes')
else
writeln('no');
end.
Are ways to do it.
The best way to contact me is by email, which you can find on my website: http://wizzup.org
I also get email notifications of private messages, though.
Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
Documentation | Source | Simba Bug Tracker on Github and Villavu )
My (Blog | Website)
Is there a way to Wildcard a number? I tried * but it doesn't work.
There are currently 1 users browsing this thread. (0 members and 1 guests)