Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Great008

  1. Great008

    rounding numbers

    INT() always rounds the number down. If you want it to round as a normal human would round such as 4.5 to 5 instead of what Qbasic would do and round 4.5 to 4 then just add .5 a=4.5 If you wanted to round like a normal human then you would a=a+.5 PRINT INT(a) Answer is 5 Or just round like...
  2. Great008

    rounding down

    Just use the INT() function. It always rounds it down.
  3. Great008

    'OPEN' a file ONLY if it exists ?

    Socko, I made a program that finds all the current filesin the current directory. I saved every file name as a variable so you could just check the name of your file with each variable. The only problem with this is that it saves the name as the DOS short names instead of the long windows name...

Part and Inventory Search

Back
Top