Instructions to unsubscribe from this list at the end of the message
- ---------------------------------------------------------------------

- --G4iJoqBmSsgzjUCe
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 26, 2002 at 11:48:02AM +0200, John C. wrote:
> Well I'll get straight to the point; I need to know the name of the opera=
tor that checks whether a number is an integer or not. I need this to happe=
n:
>=20
> if (a * b =3D=3D INTEGER)
>     { blablabla }

if both a and b are integers, (int a, int b), the result is an int. If
one of them is a float, the result is a float. If you want to check if a
float is an "integral number",

#define isint(a) (a - trunc(a) =3D=3D 0)

if (isint(a * b - c + d))
        dowork();
- --=20
Mario Xerri
[holo]

- --G4iJoqBmSsgzjUCe
Content-Type: application/pgp-signature
Content-Disposition: inline

- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE88So2dWyluz/3wygRAkF3AJ9yvcMd1du+3prr9rJ97ZvePoKkRQCfVYPF
XMBz50PXhh++BMDv341bPlk=
=CJU8
- -----END PGP SIGNATURE-----

- --G4iJoqBmSsgzjUCe--
- ---------------------------------------------------------------------
You received this message because you are subscribed to the linux
mailing list. If you do not wish to continue receiving this mailing
list, please send a mail message to [EMAIL PROTECTED]
containing only the text "unsubscribe linux"

------------------------------

Reply via email to