Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Those are some weird looking numbers. Too much of a deviation to be straight 'float can't represent this' issues. Please update with the cause when you find it :)
-
The full story is i got a job to create 2 XtraReport with pivot table.
The value is in a/b format.๐
(a1 + a2)/(b1 + b2) is not equal to a1/b1+a2/b2, so I can't sum this column from t-sql, but calculate the value during report generation. (.Net c# backend)
Spend 4 hours couldn't get the number match up...
Checked in the buggy reports.
Boss solved the problem without writing single line of code...
Turns out there's an aggregation option under xtraReport pivotgrid properties๐คฆโ๏ธ
Fuck me dead, even Google don't know about it.
It's time for year review, there's no way to justify the need to raise salary ๐ญ -
@irene another problem is the precision in our t-sql for this row is set to certain value which I didn't pay attention.
Then I could never get the same value from C# when dividing 2 doubles๐คฆโ๏ธ
All these values are currency.
I smell trouble here ๐
rant