阅读背景:

如何比较django模板中的float变量?

来源:互联网 

Attendances is a list of float variables. Even when the value is less than 75, the first case is executed. I know that by default the django template see's a variable as a string. I know how to convert the variable to integer by making it {% attendance|add:0 %}, but what do I do when the values are float? Attendances is a list of float variables. Even




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: