usage example + fix type bug (integer return instead of float)