Ratio.js icon indicating copy to clipboard operation
Ratio.js copied to clipboard

.toEditableString() function

Open m1sta opened this issue 11 years ago • 2 comments

It'd be really handy if there were a .toEditableString() function that returned something like "5 + 7/26" when called. Looking at the behaviour of the current functions, it might just be a minor change to toLocaleString().

I can imagine such a thing being useful when users were presented with ways of editting numbers best represented as fractions or known irrationals.

m1sta avatar Feb 06 '14 00:02 m1sta

I'm not sure if that's useful for most people. Could you elaborate more on the use case?

LarryBattle avatar Feb 06 '14 06:02 LarryBattle

I've just starting working on an application related to steel working and its done using fractions everywhere, and I have to store the fractions in the database and then retrieve and show them as fractions, so this would be very helpful.

mwaschkowski avatar Mar 28 '14 20:03 mwaschkowski