Skip to content

Commit

Permalink
handle xsd::decimal
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatychev authored and pchampin committed Jul 25, 2024
1 parent 176ab3b commit 1741b9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/src/term/_native_literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ impl TryFromTerm for f64 {
if let Some(lex) = term.lexical_form() {
if Term::eq(&term.datatype().unwrap(), xsd::double)
|| Term::eq(&term.datatype().unwrap(), xsd::float)
|| Term::eq(&term.datatype().unwrap(), xsd::decimal)
{
lex.parse()
} else {
Expand Down

0 comments on commit 1741b9c

Please sign in to comment.