Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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

by toolic (Bishop)
on Jan 20, 2017 at 16:41 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2022-01-22 18:52 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.