[ https://issues.apache.org/jira/browse/JEXL-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xu Pengcheng updated JEXL-420: ------------------------------ Description: code: {code:java} 1.2 == ''{code} returns false code: {code:java} 1.2 == 'a'{code} causes Caused by: java.lang.ArithmeticException: Double coercion: (NE) Is it possible to check the right side is a number like string and return false if not? was: code: `1.2 == ''` returns false code: `1.2 == 'a'` causes Caused by: java.lang.ArithmeticException: Double coercion: (NE) Is it possible to check the right side is a number like string and return false if not? > Error while comparing float and string value > -------------------------------------------- > > Key: JEXL-420 > URL: https://issues.apache.org/jira/browse/JEXL-420 > Project: Commons JEXL > Issue Type: Bug > Reporter: Xu Pengcheng > Priority: Major > > code: > {code:java} > 1.2 == ''{code} > returns false > > code: > {code:java} > 1.2 == 'a'{code} > causes Caused by: java.lang.ArithmeticException: Double coercion: (NE) > > Is it possible to check the right side is a number like string and return > false if not? -- This message was sent by Atlassian Jira (v8.20.10#820010)