pl: Kommazahl erzeugen

Beitrag lesen

Gute Idee! Serverseitig evntl. so

    if( $self->param('cc') ){
        my $fpnr = $self->param('fpnr');
        $fpnr =~ s/,/\./;
        $self->header("Content-Type","text/html");
        $self->{CONTENT} = eval{
            $self->ents( sprintf "%0.3f: %02X %02X %02X %02X", $fpnr, unpack("CCCC", pack "f", $fpnr));
        } || "Falsches Format!";
    }

Demo