M_strip_decimal_places

The Membership 2 M strip decimal places function.

Description

M_strip_decimal_places( (number) $amount ); 

Parameters (1)

0. $amount (number)
The amount.

Usage

  1. if ( !function_exists( 'M_strip_decimal_places' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/includes/functions.php'; 
  3.  
  4. // The amount. 
  5. $amount = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = M_strip_decimal_places($amount); 
  9.  

Defined (1)

The function is defined in the following location(s).

/app_old/membershipincludes/includes/functions.php  
  1. function M_strip_decimal_places( $amount ) { 
  2.  
  3. $amount = number_format($amount, 0, '.', ''); 
  4.  
  5. return $amount;