Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dinovo 40 posts 59 karma points
    Dec 11, 2009 @ 11:31
    Dinovo
    0

    Currency datatype?

    n00b question comming here;

    I need a currency datatype - the default nummeric datatype does not accept , and .
    So basiclly i just need a datatype that will accept , and . - how should i go about creating that?

  • dandrayne 1138 posts 2262 karma points
    Dec 11, 2009 @ 12:03
    dandrayne
    1

    You could use a textstring with a regex to make sure it's in the correct format.

    Dan

  • Richard Soeteman 4045 posts 12898 karma points MVP 2x
    Dec 11, 2009 @ 12:03
    Richard Soeteman
    2

    Hi I would go for a string datatype and add a regular expression to validat if it's a real currency or not. Out of the box Umraco doesn't support decimal/currency datatupes. In theory you can build it, but i wouldn't go for that.

    Cheers,

    Richard

     

  • Eric Schrepel 161 posts 226 karma points
    Apr 12, 2013 @ 00:45
    Eric Schrepel
    0

    I know this is coming in a few years after the last post, but is it true that even in Umbraco 6.0.3 there are still no currency or decimal datatypes? This is such a weird omission that it took me about 20 minutes to even understand why my currency values weren't getting saved correctly.

Please Sign in or register to post replies

Write your reply to:

Draft