{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/DT/issues/190","labels_url":"https://api.github.com/repos/rstudio/DT/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/DT/issues/190/comments","events_url":"https://api.github.com/repos/rstudio/DT/issues/190/events","html_url":"https://github.com/rstudio/DT/issues/190","id":111349431,"number":190,"title":"Server mode cause number lose precision","user":{"login":"shrektan","id":8368933,"avatar_url":"https://avatars.githubusercontent.com/u/8368933?v=3","gravatar_id":"","url":"https://api.github.com/users/shrektan","html_url":"https://github.com/shrektan","followers_url":"https://api.github.com/users/shrektan/followers","following_url":"https://api.github.com/users/shrektan/following{/other_user}","gists_url":"https://api.github.com/users/shrektan/gists{/gist_id}","starred_url":"https://api.github.com/users/shrektan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrektan/subscriptions","organizations_url":"https://api.github.com/users/shrektan/orgs","repos_url":"https://api.github.com/users/shrektan/repos","events_url":"https://api.github.com/users/shrektan/events{/privacy}","received_events_url":"https://api.github.com/users/shrektan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-14T08:35:36Z","updated_at":"2015-10-21T14:59:08Z","closed_at":null,"body":"### Description:\r\n\r\nFor large numbers like `9,760,753.42`, the digits will be shown as `9,760,753.00` or `9,760,753.40`. This phenomenon will disappear after set `renderDataTable({datatable(dt)}, server = FALSE)`.\r\n\r\nI'll add a minimal example later.\r\n\r\n### MINI REPO\r\n\r\n```r\r\n\r\nlibrary(shiny)\r\nlibrary(DT)\r\n\r\nrunApp(\r\n  list(\r\n    ui = fluidPage(\r\n      dataTableOutput(\"dt\")\r\n    ),\r\n    server = function(input, output) {\r\n      output$dt <- renderDataTable({\r\n        datatable(\r\n          data.frame(a = rnorm(5) * 10e8,\r\n                     b = rnorm(5) * 10e8)\r\n        ) %>%\r\n          formatCurrency(c(\"a\", \"b\"), \"\")\r\n      }, server = TRUE)\r\n    }\r\n  )\r\n)\r\n```\r\n\r\n### Result\r\n\r\n<img width=\"1181\" alt=\"2015-10-21 10 49 12\" src=\"https://cloud.githubusercontent.com/assets/8368933/10640152/03a6c6e4-7846-11e5-9167-7478c75d86a0.png\">\r\n\r\n### If you set `server = FALSE`\r\n\r\n<img width=\"1187\" alt=\"2015-10-21 10 48 54\" src=\"https://cloud.githubusercontent.com/assets/8368933/10640435/3b365114-7847-11e5-9450-a44a573f2025.png\">\r\n\r\n\r\n### Conclusion\r\n\r\nAs you can see, in `server = TRUE`, the numbers after dot are all zero...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rstudio/DT/issues/comments/149923874","html_url":"https://github.com/rstudio/DT/issues/190#issuecomment-149923874","issue_url":"https://api.github.com/repos/rstudio/DT/issues/190","id":149923874,"user":{"login":"shrektan","id":8368933,"avatar_url":"https://avatars.githubusercontent.com/u/8368933?v=3","gravatar_id":"","url":"https://api.github.com/users/shrektan","html_url":"https://github.com/shrektan","followers_url":"https://api.github.com/users/shrektan/followers","following_url":"https://api.github.com/users/shrektan/following{/other_user}","gists_url":"https://api.github.com/users/shrektan/gists{/gist_id}","starred_url":"https://api.github.com/users/shrektan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrektan/subscriptions","organizations_url":"https://api.github.com/users/shrektan/orgs","repos_url":"https://api.github.com/users/shrektan/repos","events_url":"https://api.github.com/users/shrektan/events{/privacy}","received_events_url":"https://api.github.com/users/shrektan/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T14:59:07Z","updated_at":"2015-10-21T14:59:07Z","body":"@yihui I've added the minimal example. Do you have any idea of how this happens?\r\n\r\n"}}