Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 2.0

Decimal datatype, fixed-precision

1 reply [Last post]
  • Login or register to post comments
Mon, 11/14/2011 - 12:37
kitsune
Offline
Joined: 11/14/2011
Groups: None

As far as my guess goes, since couchbase uses couchdb, there is no built in support for decimal datatypes - am I correct? Are there any recipes for applications that require decimal precision?

Top
  • Login or register to post comments
Thu, 12/29/2011 - 19:32
ingenthr
Offline
Joined: 03/16/2010
Groups:

Since Couchbase Server has both CouchDB style views and memcached protocol operations, one option is to serialize the value you want and store it as bytes. Of course, you won't be able to then use that in a view, but you could use it in a view with less precision.

Which client library are you using?

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker