easy_svg_path_number()
Formats a number for path data: up to four decimals, no trailing zeros, dot as separator.
Function · Easy SVG · Status: Internal · Defined in includes/core-icon.php
Internal: not part of the promised public surface. It may change without notice.
Usage
easy_svg_path_number( float|string $value ): string
Example
$n = easy_svg_path_number( 1.50 ); // 1.5
Description
Formats a number for path data: up to four decimals, no trailing zeros, dot as separator. A helper of easy_svg_core_icon(), pure and without WordPress.
Related
Was this page helpful?