-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hey,

On Tuesday 15 June 2010, Stanislav Orlenko <orlenko.stas / gmail.com> wrote:
> Hi
> I have Fixnum. I want to check does this value integer or float, i. e.
> has .xx in the trail or not. How can I check this?
> Thanks in advance

Mathematically by doing a modulo division by 1:

- ---%<---
irb(main):001:0> i = 5
=> 5
irb(main):002:0> j = 5.2
=> 5.2
irb(main):003:0> j %1
=> 0.2
irb(main):004:0> i%1
=> 0
- --->%---

HTH.
			Eric
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkwXoaUACgkQhS0drJ3goJLPgwCfbiFIMLRWNkskgnOSRAS6MNLC
vbkAnAgG5EJskR+JwijDs3HRvV2Iz+AH
=DVcg
-----END PGP SIGNATURE-----