fenom-template / fenom

Template Engine for PHP. Maintainers wanted!
Other
446 stars 108 forks source link

NaN check #332

Closed pow44feet closed 1 year ago

pow44feet commented 2 years ago

How could i compare variable for NaN property?

bzick commented 2 years ago

can you show an example?

WinterSilence commented 2 years ago

@pow44feet you can't compare NAN values, if you want check "if is NAN value?" in template, then use $fenom->addFunctionSmarty('is_nan', 'is_nan');