The rate of climb formula is an approximation.
By a lucky accident of arithmetic, if you leave the Ground speed in knots, the answer becomes a percentage.
Assuming Rate of climb is 1000ft/minute and ground speed is 100 knots.
Using 6080 ft/nautical mile gradient = 9.9%
Using 6000 ft/nautical mile gradient = 10%
The pilot has the rate of climb as a continuous readout on the VSI
The pilot has the ground speed as a continuous readout on the GPS.
Climb gradient = VSI reading in feet per minute รท GPS ground speed in knots.
It should be a simple matter to check your climb gradient if ever you need to for the sake of an exam question.
I very much doubt if you will ever need to do it in the real world!!