surinp3 Posted August 6, 2015 Posted August 6, 2015 Hi guys,I am using this: {expression="$member->pp_reputation_points/$member->member_posts"} to calculate the average "likes" per post, but it shows an exact number, such as for example 12,9984725374.Is there any way to round this number to a more readable format?
newbie LAC Posted August 6, 2015 Posted August 6, 2015 Hello,http://php.net/manual/en/function.round.phpOr use number tag https://community.invisionpower.com/4docs/advanced-usage/development/template-tags-r76/
surinp3 Posted August 6, 2015 Author Posted August 6, 2015 Hello,http://php.net/manual/en/function.round.phpOr use number tag https://community.invisionpower.com/4docs/advanced-usage/development/template-tags-r76/"Number" worked just perfectly. Thanks...!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.