Dave DeLong

Results 86 comments of Dave DeLong

Can you describe more what you’re asking for? This project is primarily for turning text in to math. There is already support for the Unicode-defines fractions (`½`, `⅓`, `⅔`, `¼`,...

How do propose representing these fractions in a string of text?

Oh, are those superscript and subscript characters?

Perhaps... I already recognize superscript characters as exponents, such as `5²`. I'd have to think about how to account for this sort of possibility. @kerusan is this what you have...

Yes, checking for the `/` + subscripts would be the way to go

Some of the trickiness would be to correctly interpret `5¹/₂` as `5.5` and not `5 * ½`

... I completely forgot I'd implemented that already. Yes, that was basically how I was thinking of doing it (using implicit addition instead of implicit multiplication)

Yeah, this will probably be ok. I'll warn you up-front however that there will be no way to get `³/₂` as an answer. You'll get `1.5`, because everything gets converted...

Not at this time. DDMathParser only supports calculations as Doubles. See #99. Supporting a different kind of evaluation number would require a very very very large and invasive change to...

For using in your own code, that seems reasonable at first glance. The problem with "using rational arithmetic throughout all calculations" as the answer suggests is that there is an...