surinp3 Posted August 6, 2015 Share 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? Link to comment Share on other sites More sharing options...
newbie LAC Posted August 6, 2015 Share 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/ Link to comment Share on other sites More sharing options...
surinp3 Posted August 6, 2015 Author Share 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...! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.