Browse: Home / Functions /

learndash_format_course_points

learndash_format_course_points( mixed $points,  int $decimals = 2 )

Formats course points to the specified decimal value.


Description #


Parameters #

$points

(mixed) (Required) Course points.

$decimals

(int) (Optional) The decimal values to round the course points.

Default value: 2


Return #

(float) Course points.


Source #

File: includes/ld-misc-functions.php


Changelog #

Changelog
Version Description
4.14.0 $decimal parameter changed from 1 to 2 by default.
2.1.0 Introduced.