fixing minor warning with converting PI double to a float NSNumber

This is a very minor change but it silences an implicit conversion warning that XCode gives with stricter type checking.