Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Need a little explaining on the INT() command.

Author
Message
dlefik 2008
19
Years of Service
User Offline
Joined: 28th Apr 2005
Location: Spencerville, OH
Posted: 16th May 2005 17:32
The help files in DBPro state...

This command will return the largest integer before the decimal point of a real number. The return value will
be an integer number.

SYNTAX
Return Integer=INT(Value)

But it just doesn't really make sense to me. Anyone think they can explain this command as easily as possible to me. Thanks in advance.
Richard Davey
Retired Moderator
22
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 16th May 2005 18:00 Edited at: 16th May 2005 18:01
Before: 14.56
After using int(): 14

When a number contains a decimal point it is called a "float", casting it to an integer removes that element. Ints are much faster for processors to work with on mass.

Two Worlds and in Between
Hot Metal and Methedrine
dlefik 2008
19
Years of Service
User Offline
Joined: 28th Apr 2005
Location: Spencerville, OH
Posted: 16th May 2005 18:11
Ahhh! Great explanation, clear as glass. Thank you very much Richard Davey!

Login to post a reply

Server time is: 2024-09-23 19:26:25
Your offset time is: 2024-09-23 19:26:25