You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting the wrong result if I am providing floating numbers in if else condition.
my %data = (balance => '800.25');
my $str2 = ' {% if balance < 1000.78 %} IN IF balance is {{ balance }} is less than 1000.78 {% else %} IN ELSE balance is {{ balance }} which is more than 1000.78 {% endif %}';
my $tt1 = Template::Liquid->parse($str2);
print $tt1->render(%data) or die $tt1->error;
print "\n\n";
Output is : IN ELSE balance is 800.25 which is more than 1000.78
Please provide a fix for this.
The text was updated successfully, but these errors were encountered:
I am getting the wrong result if I am providing floating numbers in if else condition.
Output is : IN ELSE balance is 800.25 which is more than 1000.78
Please provide a fix for this.
The text was updated successfully, but these errors were encountered: