using float and log