Answers.Body: <p>Turns out there's a plugin for that. Typography, by nystudio107.</p>
  <p><a href="https://nystudio107.com/docs/typogrify/#using-typogrify" rel="nofollow noreferrer">https://nystudio107.com/docs/typogrify/#using-typogrify</a></p>
  <p>===== edit =====</p>
  <p>I was never able to get this working with typogrify. It never treated a period immediately surrounded by numbers as a decimal point.</p>
  <p>It did inspire me to write a plugin, Fractionalize, to provide a '|fractionalize' filter which does the trick.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T05:29:06.313Z
Answers.Text: Do you have the Fractionalize plugin available at all. I need something like this right now : )
Answers.UserDisplayName: JKM
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-05-19T17:25:37.020Z
Answers.Text: @JKM Please take it with a grain of salt. Let me know if it breaks anything. https://github.com/extensibleseth/fractionalize
Answers.UserDisplayName: ponies
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-06-18T02:11:32.340Z
Answers.Text: Thanks for this. It really helped me : )
Answers.UserDisplayName: JKM
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-06-25T19:19:24.663Z
Answers.LastActivityDate: 2020-07-17T20:57:29.400Z
Answers.LastEditDate: 2020-07-17T20:57:29.400Z
Answers.UserDisplayName: ponies
Body: <p>Is there a twig filter to display decimal values as fractions?</p>
  
Tags: <templating><filter>
Title: How to display decimals as fractions?
ThreadText: # How to display decimals as fractions?
  
  (Asked by: username_0 on 2020-06-25)
  
  Is there a twig filter to display decimal values as fractions?
  
  **Tags:** templating, filter
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-06-25. Score: 1
  
  Turns out there's a plugin for that. Typography, by nystudio107.
  
  <https://nystudio107.com/docs/typogrify/#using-typogrify>
  
  ===== edit =====
  
  I was never able to get this working with typogrify. It never treated a period immediately surrounded by numbers as a decimal point.
  
  It did inspire me to write a plugin, Fractionalize, to provide a '|fractionalize' filter which does the trick.
  
  > **Comments:**
  > **username_1**: Do you have the Fractionalize plugin available at all. I need something like this right now : )  
  > **username_0**: @username_1 Please take it with a grain of salt. Let me know if it breaks anything. https://github.com/extensibleseth/fractionalize  
  > **username_1**: Thanks for this. It really helped me : )  
  
  ---
  
  