Nothing
library(dbfaker)
context("Numeric utility validation")
test_that("precision is accurate", {
expect_equal(precision(123), 3)
expect_equal(precision(0.123), 0)
expect_equal(precision(123.123), 3)
expect_equal(precision(.123), 0)
})
test_that("scale is accurate", {
expect_equal(scale(123), 0)
expect_equal(scale(0.123), 3)
expect_equal(scale(123.123), 3)
expect_equal(scale(.123), 3)
expect_equal(scale(.000123), 6)
expect_equal(scale(.123000), 3)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.