I think it's best if you create a custom datatype which stores the value as a string, but converts it to a float/double. Don't think there's a default datatype which does this.
That sounds like a pain in the ass. Does anyone know of a package that already does this or can direct me to a page about how to create custom datatypes?
I've just come across this and raised an issue - http://issues.umbraco.org/issue/U4-4652 this is quite a significant missing data type to have to deal with.
Saving a property of type float/double?
Is there a way to save a number other than an Integer as a property on a document type?
I can't just save a string because of queries.
I think it's best if you create a custom datatype which stores the value as a string, but converts it to a float/double. Don't think there's a default datatype which does this.
Jeroen
Thanks.
That sounds like a pain in the ass. Does anyone know of a package that already does this or can direct me to a page about how to create custom datatypes?
Here are some usefull blogposts on how to create a custom datatype:
http://www.nibble.be/?p=24
http://www.nibble.be/?p=97
http://www.nibble.be/?p=100
Jeroen
I've just come across this and raised an issue - http://issues.umbraco.org/issue/U4-4652 this is quite a significant missing data type to have to deal with.
is working on a reply...