Re: [exim] How do you test numbers?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Tony Finch
Ημερομηνία:  
Προς: JAS
Υ/ο: exim-users
Αντικείμενο: Re: [exim] How do you test numbers?
On Wed, 15 Dec 2004, JAS wrote:
> My error is ,
> "0.8787" is not a number inside "and{...}" condition
> Any ideas?


Exim can only handle integers, not fractional numbers. You might be able
to turn the fraction into an integer by removing the . and padding it with
zeroes using ${sg.

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}