Re: [exim] How do you test numbers?

Top Page
Delete this message
Reply to this message
Author: Tony Finch
Date:  
To: JAS
CC: exim-users
Subject: 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}}