From 378151a99c95c921288afc484f41a092eec38b0b Mon Sep 17 00:00:00 2001 From: Oscar Godson Date: Tue, 27 May 2014 23:02:57 -0700 Subject: [PATCH 1/2] Note the difference between int and number model --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8958e8f6..6da2eaf4 100644 --- a/README.md +++ b/README.md @@ -172,9 +172,11 @@ Model supports the following datatypes: * `time` * `object` -The `object` data type can take a JSON string or an object that will serialize +The `object` datatype can take a JSON string or an object that will serialize to JSON. +The `int` datatype can take floats whereas `number` cannot. + There is no currency or decimal datatype. For currencies it is recommended to use an int representing the smallest domination (such as cents), like the [Stripe](http://stripe.com/) API does. From bfe5b4d0b1cc7848c8976cf0d2200aef6569cc11 Mon Sep 17 00:00:00 2001 From: Oscar Godson Date: Thu, 29 May 2014 01:14:23 -0700 Subject: [PATCH 2/2] Fixed docs for number/int float support --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6da2eaf4..4eb4aeff 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ Model supports the following datatypes: The `object` datatype can take a JSON string or an object that will serialize to JSON. -The `int` datatype can take floats whereas `number` cannot. +The `number` datatype can take floats whereas `int` cannot. There is no currency or decimal datatype. For currencies it is recommended to use an int representing the smallest domination (such as cents), like the