mirror of
https://github.com/chaisql/chai.git
synced 2025-10-07 08:30:52 +08:00

* Add packaged functions support * Add tests for math.floor func * Export FunctionsTable * Extract func stuff into its own package * Rename stuff * Fix tests * Move doc package to cmd/genji * Adjust naming, typos
10 lines
122 B
SQL
10 lines
122 B
SQL
-- test: math.floor
|
|
> math.floor(2.3)
|
|
2.0
|
|
|
|
> math.floor(2)
|
|
2
|
|
|
|
! math.floor('a')
|
|
'floor(arg1) expects arg1 to be a number'
|