cancel
Showing results for 
Search instead for 
Did you mean: 

Numeri decimali

cristian_9027
Champ in-the-making
Champ in-the-making
E' possibile utilizzare numeri con 2 decimali? Per esprimere un prezzo in questo modo ad esempio 350.00
Ho provato d:double ma usa una sola posizione decimale.

Grazie.
2 REPLIES 2

mturatti
Champ in-the-making
Champ in-the-making
Prova ad applicare alla tua property un "custom constraint" che utilizzi una REGEX per definire la formattazione del numero:
http://wiki.alfresco.com/wiki/Constraints
Alfresco usa la sintassi delle espressioni regolari Java:
http://download.oracle.com/javase/1.5.0/docs/api/java/util/regex/Pattern.html
Un possibile regex match per due cifre decimali fisse potrebbe essere: ^(\d*)(\.\d{2})$

cristian_9027
Champ in-the-making
Champ in-the-making
Grazie mille. Sto lavorando proprio su queste cose.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.