John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Network:
Windows 2008 Server
>All,
>
>Given the user input being the numeric value between 249.99 and 999.94 with 2 decimal places and always ending in .99 I have to return a number that is evenly divisible by 3 with up to 2 decimals.
>
>Example:
>
>User enters 599.99 and I have to display that he needs to use 599.97.
Your hypothesis makes no sense. 599.97 is not equially divisible by 3 ... 600 is , 597.00 is and 597.99 is but not what you've supplied. You may need to be a bit more specific in your question.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement