Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
NotSoFriendly solution in Clear category for Friendly Number by Seaclaid
import math
def friendly_number(number, base=1000, decimals=0, suffix='',
powers=['', 'k', 'M', 'G', 'T', 'P', 'E', 'Z', 'Y']):
prefix,znak,pow_base,zera='','',[''],''
base_temp=1
print(number)
num=abs(number)
if number<0:
znak='-'
#if num>base:
for i in range(len(powers)):
if num1:
tt=len(temp[1])
else:
tt=0
zera='.'
for i in range(decimals-tt):
if (tt)
Jan. 8, 2017