@register.filter<EOL>def roundplus(number):
num = str(number)<EOL>if not num.isdigit():<EOL><INDENT>return num<EOL><DEDENT>num = str(number)<EOL>digits = len(num)<EOL>rounded = '<STR_LIT>'<EOL>if digits < <NUM_LIT:3>:<EOL><INDENT>rounded = num<EOL><DEDENT>elif digits == <NUM_LIT:3>:<EOL><INDENT>rounded = num[<NUM_LIT:0>] + '<STR_LIT>'<EOL><DEDENT>elif digits == <NUM_LIT:4>:<EOL><INDENT>rounded = num[<NUM_LIT:0>] + '<STR_LIT>'<EOL><DEDENT>elif digits == <NUM_LIT:5>:<EOL><INDENT>rounded = num[:<NUM_LIT:1>] + '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>rounded = '<STR_LIT>'<EOL><DEDENT>return rounded<EOL>
given an number, this fuction rounds the number as the following examples:
87 -> 87, 100 -> 100+, 188 -> 100+, 999 -> 900+, 1001 -> 1000+, ...etc