define float type for Hooks

Change-Id: Ic7f577135edc6aa6039e8dd620a7fddff3ee61da