Aller au contenu

Colorseeds

dev things

Articles récents

  • Which DLL are used by a process ?
  • Clap de fin pour Nantes en Direct…
  • Create a link that initiates a Nintex Workflow associated to a Document Set
  • SharePoint : How to filter an external data XsltListViewWebPart in SharePoint Designer ?
  • SharePoint 2013 : How to repair a broken Search component at low cost

Étiquette : arrondi

JAVA : Arrondi monétaire sur un float / double

L’arrondi monétaire consiste à convertir 3.322 en 3.32 et 3.325 en 3.33

x = (Math.rint(x * 100.0) / 100.0);

Publié le 24 février 2009Auteur olivierCatégories Development, JavaMots-clés arrondi, double, float, Java, monnaie
Fièrement propulsé par WordPress