SepNbre2SyntaxeSepNbre2(Nbre) Sépare les chiffres d'un nombre par groupe de 3. Le paramètre est au format nombre, le résultat est au format texte. Supporte les nombres longs à écriture exponentielle. Par Barry Wainwright, adapté par Nigel Garvey ExempleSepNbre2(58966325) ---> "58 966 325" SepNbre2(4.535E+13) ---> "45 350 000 000 000" Scripton SepNbre2(n) if n < 1000 then return n as text SepNbre2(n div 1000) & " " & text 2 thru 4 of ((1000 + n mod 1000) as string) end SepNbre2
|