Posted August 6, 20159 yr 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?
August 6, 20159 yr Hello,http://php.net/manual/en/function.round.phpOr use number tag https://community.invisionpower.com/4docs/advanced-usage/development/template-tags-r76/
August 6, 20159 yr Author 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...!
Archived
This topic is now archived and is closed to further replies.