Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting number to string representation
Message
De
29/04/2009 02:36:32
 
 
À
29/04/2009 02:32:32
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01396542
Message ID:
01396863
Vues:
61
>>>>Do you know in which cases one puts an 'and' between Hundred and what follows ?
>>>
>>>I'd think any time anything follows. e.g:
>>>1300 = One Thousand Three Hundred
>>>1327 = One Thousand Three Hundred and Twenty Seven
>>>etc
>>
>>
>>The 1300 - I knew - ;)
>>
>>But I was not sure about the rest [ There are rules in Spanish for that - which I have forgotten ]
>>So, that should be simple .... if it weren't for ...
>>
>>the case that there are no hundreds, eg 1004 , 10004, 100004
>>104000000 [ With one billion = 1000,000,000,000]
>>104000001 hundred and four million and one
>>
>>I'd need to give it some thought - might be fun
>
Is the rule simply that 'and' precedes the portion of the number less than one hundred?
Don't see how that could fit into the current algorighm though - probably need a routine to adapt the final result
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform