Energy modify type return from int to float