Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Perl6::Form not printing 0 (zero)

by toolic (Bishop)
on Jan 20, 2017 at 16:41 UTC ( [id://1180030]=note: print w/replies, xml ) Need Help??


in reply to Perl6::Form not printing 0 (zero)

Here is what I get when I change 0 to 2:
2.0 1.0

I can't think of a way to get it to print a 0. The Perl6::Form spec is quite dense. Either 0 intentionally has special meaning, or it could be a bug. You could submit a bug report.

Replies are listed 'Best First'.
Re^2: Perl6::Form not printing 0 (zero)
by StuLong (Acolyte) on Jan 25, 2017 at 11:27 UTC

    I found the issue in Perl6::Form, and put in a bug report. I suggested a solution which fixes this particular problem.

    There's another transformation later in the code that truncates trailing zeroes from the after-the-decimal segment. I know what's doing it, I'm just not sure why. That's why both of our runs show a single zero after the decimal point when the format field specifies two decimal places.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1180030]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found