Monitoring voltage from a power supply

Ah, right there on the page I linked to, it says it returns a long. Not sure how I missed that. :-/

Naturally, you will need to calibrate the input regardless of the math used.