Message Boards Message Boards

0
|
241 Views
|
2 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Is there a simple conversion of periodic decimal numbers into fractions

Posted 6 days ago

Hello
I am missing a simple conversion of periodic decimal numbers into fractions. Rationalize only works in a few cases. Do you really have to write a function yourself that performs this elementary conversion? In Julia, for example, there is something like 0.2(3) for the fraction 7/30. The period is in the round brackets.
Have I overlooked something convenient? Many thanks for any hints.
Albert

POSTED BY: Albert Gaechter
2 Replies
Posted 6 days ago
FromDigits[{{2, {3}}, 0}]
POSTED BY: Eric Rimbey

Thanks! That's exactly what I was looking for. Albert

POSTED BY: Albert Gaechter
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract