Fixing scalar and setting default to float.