SMath Studio Forum
»
SMath Studio
»
Questions
»
How to force SMath to show values in decimal format and not fraction
  Rank: Member Groups: Registered
Joined: 10/01/2017(UTC) Posts: 27   Location: Alberta
|
Hi, I am trying to display output calculations visually on a diagram in SMath through text. whenever there is decimal/fraction it always displays it in fraction format and I want to display it in decimal. how can I do this please knowing that I already tried forcing the "fraction" option in the Tools to "Decimal"?  Thanks in advance!
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,103  Was thanked: 891 time(s) in 719 post(s)
|
Maybe like this ? 
|
|
|
|
  Rank: Member Groups: Registered
Joined: 10/01/2017(UTC) Posts: 27   Location: Alberta
|
Thanks Jean, but I did not understand how you made it work. Can you send a small example? Also, I did not find any "optimiz" option in my version of SMath. example.sm (2kb) downloaded 44 time(s).thanks
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,103  Was thanked: 891 time(s) in 719 post(s)
|
Hello Alberta ! I consulted for Syncrude [6 months 1983]. I can't reproduce your "Combo box" 6179. example.sm (4kb) downloaded 48 time(s).
|
|
|
|
  Rank: Advanced Member Groups: Registered, Advanced Member Joined: 13/01/2012(UTC) Posts: 2,498   Location: Italy Was thanked: 1253 time(s) in 825 post(s)
|
If you are using the conditionally formatted label or a plot, it is possible to use var2str() from CustomFunctions plugin. Otherwise you can simply use a math region, right click on it and uncheck "Display input data", add a border (if you want), and that's all (in this case, use the options that Jean has mentioned in his first reply) example.sm (9kb) downloaded 46 time(s). |
If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects |
 1 user thanked Davide Carpi for this useful post.
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,103  Was thanked: 891 time(s) in 719 post(s)
|
Originally Posted by: Mido0  Can you send a small example? Once the document is ready for publishing => two options, 1. in customized text region [mostly for results] 2. in "Formatted Label" [very convenient to show all maths] Image Formated LABEL [Oxyhemoglobin].sm (18kb) downloaded 38 time(s). Image Formated LABEL.sm (25kb) downloaded 37 time(s).
|
 1 user thanked Jean Giraud for this useful post.
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,103  Was thanked: 891 time(s) in 719 post(s)
|
... Oxyhemoglobin ... you can reworks the maths by just clicking on the region of interest. Try changing 'b' limit of the integrator, all the slided regions disappear [similar to Mathcad "bring to front"], as you quit the "Formated Label" region, everything comes back live. Mathcad could not do that, the graph would have to be external. The all stuff "Formated Label" is calculated first and the graph behaves like if it would be below in normal work sheet. Fantastic for day to day classroom in small chunks or for client.
Cheers, Jean
|
|
|
|
  Rank: Member Groups: Registered
Joined: 10/01/2017(UTC) Posts: 27   Location: Alberta
|
Thanks a lot Jean, Thanks a lot Davide. Jean, I think the Oxyhemoglobin was a post for someone else because it is not related to the topic
|
|
|
|
 Rank: Guest
Groups: Registered
Joined: 04/07/2015(UTC) Posts: 6,103  Was thanked: 891 time(s) in 719 post(s)
|
Originally Posted by: Mido0  Jean, I think the Oxyhemoglobin was a post for someone else because it is not related to the topic "Someone else" is myself. It shows how to publish a final project. Oxyhemoglobin dates back to Mathcad Collaboratory. From recollection, it was quite a brain storm because the published data were not as collected. Rather, the data set was freaked by unknown. That does not help modeling ! On the other hand, the original 244 pairs does not help the fit, 16 pairs were largely enough. Cheers, Jean Genfit Oxyhemoglobin Reconciliation.sm (48kb) downloaded 13 time(s). Image Formated LABEL [Oxyhemoglobin].sm (18kb) downloaded 12 time(s). Genfit Oxyhemoglobin.sm (55kb) downloaded 14 time(s).
|
|
|
|
  Rank: Advanced Member Groups: Registered
Joined: 14/10/2015(UTC) Posts: 287
Was thanked: 71 time(s) in 53 post(s)
|
I think is better to use the result directly in the drawing by changing the units and hiding the name of the variable  example_IMD.sm (547kb) downloaded 24 time(s).
|
|
|
|
SMath Studio Forum
»
SMath Studio
»
Questions
»
How to force SMath to show values in decimal format and not fraction
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.