Group Abstract Group Abstract

Message Boards Message Boards

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

Is there a simple conversion of periodic decimal numbers into fractions

Posted 1 year 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

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

POSTED BY: Albert Gaechter
Posted 1 year ago
FromDigits[{{2, {3}}, 0}]
POSTED BY: Eric Rimbey
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard