ruricolist / serapeum

Utilities beyond Alexandria
MIT License
420 stars 41 forks source link

Add FUEL function. #96

Closed lukego closed 2 years ago

lukego commented 2 years ago

This branch adds the FUEL function that was originally hashed out in #93.

I'm finding this function useful and I found myself sharing code that depends on it so I decided to post it for consideration.

ruricolist commented 2 years ago

I've merged this with a tweak to signal an error in the (admittedly exotic) case where the fuel level is a large float and the consumption is a small float such that the fuel level remains unchanged.

lukego commented 2 years ago

Nifty!