Comments (2)
Here's some research I did on this a while back:
LH RH subtraction addition notes
integer integer integer integer
integer double double, pro LH double, pro LH
integer money money, pro LH money, pro LH
integer * integer, cnv RH integer, cnv RH
double integer double, pro RH double, pro RH
double double double double
double money double double resulting amounts in whole currency
double * double, cnv RH double, cnv RH
money integer money money RH treated as whole currency
money double double, cnv LH money, cnv RH *inconsistency*
money money money money
money * money, cnv RH ?
string * string, cnv RH string, cnv RH convert to string before performing operation```
from centrallix.
I should add here -- the research I had done indicated that among other SQLs it is standard for the type precedence to be (highest to lowest): Fixed point (money), floating point (double), and then integer. This would change several of the above result types. With multiplication and division, the current code follows dimensional analysis logic where possible (so, for example, money ร money is not defined, and money รท money is double or integer).
from centrallix.
Related Issues (20)
- Centrallix testdriver should only try to use ncurses if it is available
- Convert server-side MoneyType to single long long
- Use AJAX + JSON instead of iframes + anchor tags
- Reorganize JavaScript module structure
- Consider setting up a Webpack JS toolchain that supports Babel, minification, ...
- UTF-8 compatibility
- Autoscaling/responsive widgets using CSS calc()
- Complete Centrallix-Lib test suite
- Complete Centrallix SQL tests
- RPT - Print error message if ghostscript is not installed
- Test Centrallix utility modules HOT 1
- System for automated setup of Centrallix environments HOT 3
- Test Centrallix objectsystem drivers
- Frontend integration testing
- Frontend unit testing
- Automated memory leak testing
- Automated security testing
- Fix 'SIZE_MAX undeclared' compilation error
- Add alternative file path for JSON-C headers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from centrallix.