The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
docs: TBD
code: |
    sub number_format
    {
        my ( $number, $decimals, $dec, $thousands ) = validate_pos( @_,
            NUMBER,
            { %{+NUMBER}, optional => 1 },
            { %{+STRING}, optional => 1, default => '.' },
            { %{+STRING}, optional => 1, default => ',' },
        );

        my $format = $decimals ? "%.${decimals}f" : "%d";

        my $formatted = 'XXX';

        return $formatted;
    }