i'm making a program, i need to know is there a command for "divisible"?
as in

if m is divisible by n

if not, is there a command like "if its a whole number"?
as in

if m is a whole number

of course i can work with either command,
the second command is basically just the first command:"if m is divisible by 1"
and the first command is basically just the second command:"if m/n is a whole number"

actually, i think i found it

m % n

gives the remainder,

thus if remainder is 0, its divisible...
please do correct me if i'm wrong, though

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.