{"action":"created","comment":{"url":"https://api.github.com/repos/ravendb/docs/pulls/comments/181650582","pull_request_review_id":112310734,"id":181650582,"diff_hunk":"@@ -0,0 +1,105 @@\n+﻿# Numbers in RavenDB\n+---\n+\n+{NOTE: }\n+\n+Rational numbers are infinitely big and infinitely small, in computer science we are able to \"model\" the universe with a limited degree of accuracy and range.  \n+RavenDB is not an exception and has it's own boundaries of accuracy and range, which match most common cases of any business application.  \n+This article is planned for users who know that they are going to use uncommon numeric ranges. It will cover the way RavenDB's Server approaches numeric values and what level of range and accuracy can be expected from each of it's mechanisms.  \n+RavenDB's Client support of numbers depends on platform and chosen deserialization.  \n+\n+In this page:  \n+* [About numbers](../../server/kb/numbers-in-ravendb#about-numbers)  \n+* [Numbers in documents](../../server/kb/numbers-in-ravendb#numbers-in-documents)  \n+* [Numbers in Javascript](../../server/kb/numbers-in-ravendb#numbers-in-javascript-engine)  \n+* [Numbers in indexes and queries](../../server/kb/numbers-in-ravendb#numbers-in-indexes-and-queries)  \n+* [Numbers in studio](../../server/kb/numbers-in-ravendb#numbers-in-management-studio)  \n+* [Numbers in client API](server/kb/numbers-in-ravendb#numbers-in-client-api)  \n+\n+\n+{NOTE/}\n+\n+---\n+\n+{PANEL: About numbers}\n+Although real numbers has no limits in size or percision, in computing there are limitations.  \n+Simplest type of numbers known to computers are integers. RavenDB fully supports integers of `int` type between [-2,147,483,648 to 2,147,483,647].  \n+Simplest type of fraction known to computers are floating point numbers. RavenDB fully supports double percision floating point number with approximate range of 15-16 digits between [±5.0 × 10^(−324) to ±1.7 × 10^308].  \n+\n+RavenDB supports storing numbers in the range of the `double` type described above. RavenDB supports storing number in any percision, but it's indexing and javascript mechanisms are limited to the 16 digits percision of `double` numbers.  \n+In order to better understand the terms percision and range, please observe the next diagram, comparing range and percision of 3 common .net types: `long`, `double` and `decimal`:\n+\n+![Percision and range in numeric types](images/NumberTypesPercisions.png)  \n+\n+Numbers bigger then double percision max number will be rejected by server. Mechanisms supporting only double percision numbers will by default round the number to a `double`, loosing percision.  ","path":"Documentation/4.0/Raven.Documentation.Pages/server/kb/numbers-in-ravendb.markdown","position":34,"original_position":34,"commit_id":"c47f5fab0d8c0d28cd234bf7bd42d88f1308a4c5","original_commit_id":"c47f5fab0d8c0d28cd234bf7bd42d88f1308a4c5","user":{"login":"ayende","id":116915,"avatar_url":"https://avatars3.githubusercontent.com/u/116915?v=4","gravatar_id":"","url":"https://api.github.com/users/ayende","html_url":"https://github.com/ayende","followers_url":"https://api.github.com/users/ayende/followers","following_url":"https://api.github.com/users/ayende/following{/other_user}","gists_url":"https://api.github.com/users/ayende/gists{/gist_id}","starred_url":"https://api.github.com/users/ayende/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ayende/subscriptions","organizations_url":"https://api.github.com/users/ayende/orgs","repos_url":"https://api.github.com/users/ayende/repos","events_url":"https://api.github.com/users/ayende/events{/privacy}","received_events_url":"https://api.github.com/users/ayende/received_events","type":"User","site_admin":false},"body":"We do NOT reject such numbers","created_at":"2018-04-16T08:02:56Z","updated_at":"2018-04-16T08:05:42Z","html_url":"https://github.com/ravendb/docs/pull/691#discussion_r181650582","pull_request_url":"https://api.github.com/repos/ravendb/docs/pulls/691","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ravendb/docs/pulls/comments/181650582"},"html":{"href":"https://github.com/ravendb/docs/pull/691#discussion_r181650582"},"pull_request":{"href":"https://api.github.com/repos/ravendb/docs/pulls/691"}}},"pull_request":{"url":"https://api.github.com/repos/ravendb/docs/pulls/691","id":181712631,"html_url":"https://github.com/ravendb/docs/pull/691","diff_url":"https://github.com/ravendb/docs/pull/691.diff","patch_url":"https://github.com/ravendb/docs/pull/691.patch","issue_url":"https://api.github.com/repos/ravendb/docs/issues/691","number":691,"state":"open","locked":false,"title":"RDoc-1163: Documenting the javascript engine and the way raven works …","user":{"login":"maximburyak","id":6830980,"avatar_url":"https://avatars3.githubusercontent.com/u/6830980?v=4","gravatar_id":"","url":"https://api.github.com/users/maximburyak","html_url":"https://github.com/maximburyak","followers_url":"https://api.github.com/users/maximburyak/followers","following_url":"https://api.github.com/users/maximburyak/following{/other_user}","gists_url":"https://api.github.com/users/maximburyak/gists{/gist_id}","starred_url":"https://api.github.com/users/maximburyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximburyak/subscriptions","organizations_url":"https://api.github.com/users/maximburyak/orgs","repos_url":"https://api.github.com/users/maximburyak/repos","events_url":"https://api.github.com/users/maximburyak/events{/privacy}","received_events_url":"https://api.github.com/users/maximburyak/received_events","type":"User","site_admin":false},"body":"…with number","created_at":"2018-04-15T18:16:44Z","updated_at":"2018-04-16T08:05:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"679a345dc336a03ad723afb4d7e7c2c0ea5e6d08","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ravendb/docs/pulls/691/commits","review_comments_url":"https://api.github.com/repos/ravendb/docs/pulls/691/comments","review_comment_url":"https://api.github.com/repos/ravendb/docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ravendb/docs/issues/691/comments","statuses_url":"https://api.github.com/repos/ravendb/docs/statuses/c47f5fab0d8c0d28cd234bf7bd42d88f1308a4c5","head":{"label":"maximburyak:RDoc-1163","ref":"RDoc-1163","sha":"c47f5fab0d8c0d28cd234bf7bd42d88f1308a4c5","user":{"login":"maximburyak","id":6830980,"avatar_url":"https://avatars3.githubusercontent.com/u/6830980?v=4","gravatar_id":"","url":"https://api.github.com/users/maximburyak","html_url":"https://github.com/maximburyak","followers_url":"https://api.github.com/users/maximburyak/followers","following_url":"https://api.github.com/users/maximburyak/following{/other_user}","gists_url":"https://api.github.com/users/maximburyak/gists{/gist_id}","starred_url":"https://api.github.com/users/maximburyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximburyak/subscriptions","organizations_url":"https://api.github.com/users/maximburyak/orgs","repos_url":"https://api.github.com/users/maximburyak/repos","events_url":"https://api.github.com/users/maximburyak/events{/privacy}","received_events_url":"https://api.github.com/users/maximburyak/received_events","type":"User","site_admin":false},"repo":{"id":37446013,"name":"docs","full_name":"maximburyak/docs","owner":{"login":"maximburyak","id":6830980,"avatar_url":"https://avatars3.githubusercontent.com/u/6830980?v=4","gravatar_id":"","url":"https://api.github.com/users/maximburyak","html_url":"https://github.com/maximburyak","followers_url":"https://api.github.com/users/maximburyak/followers","following_url":"https://api.github.com/users/maximburyak/following{/other_user}","gists_url":"https://api.github.com/users/maximburyak/gists{/gist_id}","starred_url":"https://api.github.com/users/maximburyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maximburyak/subscriptions","organizations_url":"https://api.github.com/users/maximburyak/orgs","repos_url":"https://api.github.com/users/maximburyak/repos","events_url":"https://api.github.com/users/maximburyak/events{/privacy}","received_events_url":"https://api.github.com/users/maximburyak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maximburyak/docs","description":"Documenation book for RavenDB","fork":true,"url":"https://api.github.com/repos/maximburyak/docs","forks_url":"https://api.github.com/repos/maximburyak/docs/forks","keys_url":"https://api.github.com/repos/maximburyak/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maximburyak/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maximburyak/docs/teams","hooks_url":"https://api.github.com/repos/maximburyak/docs/hooks","issue_events_url":"https://api.github.com/repos/maximburyak/docs/issues/events{/number}","events_url":"https://api.github.com/repos/maximburyak/docs/events","assignees_url":"https://api.github.com/repos/maximburyak/docs/assignees{/user}","branches_url":"https://api.github.com/repos/maximburyak/docs/branches{/branch}","tags_url":"https://api.github.com/repos/maximburyak/docs/tags","blobs_url":"https://api.github.com/repos/maximburyak/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maximburyak/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maximburyak/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/maximburyak/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maximburyak/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/maximburyak/docs/languages","stargazers_url":"https://api.github.com/repos/maximburyak/docs/stargazers","contributors_url":"https://api.github.com/repos/maximburyak/docs/contributors","subscribers_url":"https://api.github.com/repos/maximburyak/docs/subscribers","subscription_url":"https://api.github.com/repos/maximburyak/docs/subscription","commits_url":"https://api.github.com/repos/maximburyak/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/maximburyak/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/maximburyak/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/maximburyak/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/maximburyak/docs/contents/{+path}","compare_url":"https://api.github.com/repos/maximburyak/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maximburyak/docs/merges","archive_url":"https://api.github.com/repos/maximburyak/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maximburyak/docs/downloads","issues_url":"https://api.github.com/repos/maximburyak/docs/issues{/number}","pulls_url":"https://api.github.com/repos/maximburyak/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/maximburyak/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/maximburyak/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maximburyak/docs/labels{/name}","releases_url":"https://api.github.com/repos/maximburyak/docs/releases{/id}","deployments_url":"https://api.github.com/repos/maximburyak/docs/deployments","created_at":"2015-06-15T05:47:12Z","updated_at":"2016-08-29T21:59:11Z","pushed_at":"2018-04-15T18:16:35Z","git_url":"git://github.com/maximburyak/docs.git","ssh_url":"git@github.com:maximburyak/docs.git","clone_url":"https://github.com/maximburyak/docs.git","svn_url":"https://github.com/maximburyak/docs","homepage":"http://ravendb.net","size":75619,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ravendb:master","ref":"master","sha":"4de739292d9def33a1e94cd63f24a5a2e050db7d","user":{"login":"ravendb","id":213792,"avatar_url":"https://avatars0.githubusercontent.com/u/213792?v=4","gravatar_id":"","url":"https://api.github.com/users/ravendb","html_url":"https://github.com/ravendb","followers_url":"https://api.github.com/users/ravendb/followers","following_url":"https://api.github.com/users/ravendb/following{/other_user}","gists_url":"https://api.github.com/users/ravendb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravendb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravendb/subscriptions","organizations_url":"https://api.github.com/users/ravendb/orgs","repos_url":"https://api.github.com/users/ravendb/repos","events_url":"https://api.github.com/users/ravendb/events{/privacy}","received_events_url":"https://api.github.com/users/ravendb/received_events","type":"Organization","site_admin":false},"repo":{"id":961487,"name":"docs","full_name":"ravendb/docs","owner":{"login":"ravendb","id":213792,"avatar_url":"https://avatars0.githubusercontent.com/u/213792?v=4","gravatar_id":"","url":"https://api.github.com/users/ravendb","html_url":"https://github.com/ravendb","followers_url":"https://api.github.com/users/ravendb/followers","following_url":"https://api.github.com/users/ravendb/following{/other_user}","gists_url":"https://api.github.com/users/ravendb/gists{/gist_id}","starred_url":"https://api.github.com/users/ravendb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ravendb/subscriptions","organizations_url":"https://api.github.com/users/ravendb/orgs","repos_url":"https://api.github.com/users/ravendb/repos","events_url":"https://api.github.com/users/ravendb/events{/privacy}","received_events_url":"https://api.github.com/users/ravendb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ravendb/docs","description":"Docs for RavenDB","fork":false,"url":"https://api.github.com/repos/ravendb/docs","forks_url":"https://api.github.com/repos/ravendb/docs/forks","keys_url":"https://api.github.com/repos/ravendb/docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ravendb/docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ravendb/docs/teams","hooks_url":"https://api.github.com/repos/ravendb/docs/hooks","issue_events_url":"https://api.github.com/repos/ravendb/docs/issues/events{/number}","events_url":"https://api.github.com/repos/ravendb/docs/events","assignees_url":"https://api.github.com/repos/ravendb/docs/assignees{/user}","branches_url":"https://api.github.com/repos/ravendb/docs/branches{/branch}","tags_url":"https://api.github.com/repos/ravendb/docs/tags","blobs_url":"https://api.github.com/repos/ravendb/docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ravendb/docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ravendb/docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ravendb/docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ravendb/docs/statuses/{sha}","languages_url":"https://api.github.com/repos/ravendb/docs/languages","stargazers_url":"https://api.github.com/repos/ravendb/docs/stargazers","contributors_url":"https://api.github.com/repos/ravendb/docs/contributors","subscribers_url":"https://api.github.com/repos/ravendb/docs/subscribers","subscription_url":"https://api.github.com/repos/ravendb/docs/subscription","commits_url":"https://api.github.com/repos/ravendb/docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ravendb/docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ravendb/docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ravendb/docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ravendb/docs/contents/{+path}","compare_url":"https://api.github.com/repos/ravendb/docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ravendb/docs/merges","archive_url":"https://api.github.com/repos/ravendb/docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ravendb/docs/downloads","issues_url":"https://api.github.com/repos/ravendb/docs/issues{/number}","pulls_url":"https://api.github.com/repos/ravendb/docs/pulls{/number}","milestones_url":"https://api.github.com/repos/ravendb/docs/milestones{/number}","notifications_url":"https://api.github.com/repos/ravendb/docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ravendb/docs/labels{/name}","releases_url":"https://api.github.com/repos/ravendb/docs/releases{/id}","deployments_url":"https://api.github.com/repos/ravendb/docs/deployments","created_at":"2010-10-04T19:12:52Z","updated_at":"2018-04-16T07:53:36Z","pushed_at":"2018-04-16T07:53:34Z","git_url":"git://github.com/ravendb/docs.git","ssh_url":"git@github.com:ravendb/docs.git","clone_url":"https://github.com/ravendb/docs.git","svn_url":"https://github.com/ravendb/docs","homepage":"https://ravendb.net","size":75550,"stargazers_count":90,"watchers_count":90,"language":"C#","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":106,"mirror_url":null,"archived":false,"open_issues_count":8,"license":null,"forks":106,"open_issues":8,"watchers":90,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ravendb/docs/pulls/691"},"html":{"href":"https://github.com/ravendb/docs/pull/691"},"issue":{"href":"https://api.github.com/repos/ravendb/docs/issues/691"},"comments":{"href":"https://api.github.com/repos/ravendb/docs/issues/691/comments"},"review_comments":{"href":"https://api.github.com/repos/ravendb/docs/pulls/691/comments"},"review_comment":{"href":"https://api.github.com/repos/ravendb/docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ravendb/docs/pulls/691/commits"},"statuses":{"href":"https://api.github.com/repos/ravendb/docs/statuses/c47f5fab0d8c0d28cd234bf7bd42d88f1308a4c5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ayende"}}