[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-recutils] Howto declare currency or money [monetary] field w/va

From: recutils
Subject: Re: [bug-recutils] Howto declare currency or money [monetary] field w/values like: "$150" or "($45.12)" ?
Date: Sat, 10 Aug 2019 08:54:10 -0500

Hi John:

On Sat 8/10/19 15:27 +0200 John Darrington wrote:
>Formatting and parsing monetary values is almost as much of a pain as
>date/time values.  I suggest that you declare it as "real" and enter
>all your amounts as simple values (eg: "925.00" or "-179.99") if it's
>imperative that you see them displayed with a leading dollar sign,
>then write a report template to do it that way.

Thanks John.  I can do what you suggest above.

I'm curious what this means:

    $ ack MDB_MONEY
    + command ack '--pager=command less -r' -C 3 -i MDB_MONEY
    + ack '--pager=command less -r' -C 3 -i MDB_MONEY
    360-                      "%s int", normalised);
    361-            break;
    362-          }
    363:        case MDB_MONEY:
    364-        case MDB_FLOAT:
    365-        case MDB_DOUBLE:
    366-          {


reply via email to

[Prev in Thread] Current Thread [Next in Thread]