Function "percentage" is implemented (#12771).

Change-Id: I0a2e3d31f60bd085d619b603bd229dba902ff001