Y
Hacker News
new
|
ask
|
show
|
jobs
Ratio-Delta
(
github.com
)
1 points
by
LLyaudet
1089 days ago
2 comments
LLyaudet
1089 days ago
An unknown but somewhat common arithmetic operation
link
compressedgas
1088 days ago
It makes more sense to me as (b-a)/b
link
LLyaudet
1088 days ago
Or 1 - (a/b) ;) The rational behind my choice of a/b - 1 is that it corresponds exactly to what I was asked to display in an accounting report and use it to filter some lines. I would be happy if you can elaborate why it makes more sense to you :)
link