[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [calc] question...
On 9 Aug, Bruno Cappello wrote:
> ****** message to minivend-users from "Bruno Cappello" <cappello@weblane.fr> ******
>
> Hello All,
>
> I have a question concerning the [calc] tag...
>>From within a form VALUE=[total-cost] works just fine.
>
> However, I was looking to eliminate the decimals in order to have a whole
> number... (ie. multiply [total-cost] by 10)
>
> When we put the following line in the result is O...
> we can't understand why :
>
> VALUE=[calc] [total-cost] operation_of_your_choice [/calc]
>
> More simply :
>
> VALUE=[calc] [total-cost] [/calc]
>
> Shouldn't the value of [total-cost] be returned?
> The value returned is "0".
>
> Can anyone explain what I'm doing wrong?
>
> In advance, many thanks.
> Bruno-
>
> Fortune of the day :
> Meta Murphy's law :
> We can't use Murphy's law because it can't work.
> -
> To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list
>
Hello Bruno,
the [total-cost] has a format i.e. DM 12.34 (german). Try this
[calc] [total-cost norformat=1] operation_of_your_choice [/calc]
Joachim
--
Hans-Joachim Leidinger hans-joachim.leidinger@home.gelsen-net.de