Jump to content

Division Format Question?


Solarpitch

Recommended Posts

Hey,

 

I am currently using this code to get a result through division...

 


SELECT * FROM ratings WHERE total_votes > 0 ORDER BY (total_value / total_votes) DESC LIMIT 0, 5

 

this will display eg: 3.8888888888889

 

how can I round this off so it will show 3.9?

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/92176-division-format-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.