WordPress at a glance
function is not described

wc_format_option_price_num_decimals() WC 1.0

Formats decimals when saved in settings.

No Hooks.

Return

String. Nothing.

Usage

wc_format_option_price_num_decimals( $value, $option, $raw_value );
$value(string) (required)
Option value.
$option(array) (required)
Option name.
$raw_value(string) (required)
Raw value.

Code of wc_format_option_price_num_decimals() WC 5.3.0

<?php
function wc_format_option_price_num_decimals( $value, $option, $raw_value ) {
	return is_null( $raw_value ) ? 2 : absint( $raw_value );
}