Allow to check both float & double types

Change-Id: Ia5752662110fb6ab2bdae1e2b7cd24fb78ae7fea