Re: [exim] How do you test numbers?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: JAS
CC: exim-users
Sujet: 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}}