![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Registered User
Industry Role:
Join Date: Aug 2003
Location: QWEBEC Corporate Office
Posts: 7,124
|
SQL Need Help! (round($VAR, 1))
Ok I,m working on something and I'm a bit puzzled here
with ROUND : (round($VAR, 1)) I try to round Var numbers at the closest .5 with only one decimal Now I can have : $var = 1.01 gives 1 $var = 1.23 gives 1.3 $var = 1.42 gives 1.4 $var = 1.77 gives 1.8 What I'd like : $var = 1.01 gives 1 $var = 1.23 gives 1 $var = 1.42 gives 1.5 $var = 1.77 gives 2 Well, you get the idea... So in a nutshell, I'd like my result to be at the closest .5 I also tried Ceil and Floor ![]() Is it something possible ? Txs Forward ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |