How to Truncate AND Calculate ??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pookie62
Forum Commoner
Posts: 92
Joined: Tue Dec 07, 2004 2:44 pm

How to Truncate AND Calculate ??

Post by pookie62 »

Hi all,

I want to truncate a number, which is going fine, but how to calculate a serie of numbers from which I need the smallest (MIN) and want to Truncate it ???
This is what I tried but is not correct..

TRUNCATE (MIN(`score`.`Tijd`, 2)) AS `Tijd` FROM `deelnemer`

Any ideas ??

Thanks..
Post Reply