How to force SMath to show values in decimal format and not fraction

How to force SMath to show values in decimal format and not fraction - Decimal, fraction format - 消息

#1 已发布: 2017/10/10 15:55:09
Mo

Mo

0个赞,共34个帖子。

组: User

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"?
smath.JPG

Thanks in advance!
#2 已发布: 2017/10/10 16:39:10
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Maybe like this ?

Result.PNG
#3 已发布: 2017/10/10 18:18:12
Mo

Mo

0个赞,共34个帖子。

组: User

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 (1.99 KiB)已下载 1350 次。
thanks
#4 已发布: 2017/10/10 19:14:12
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Hello Alberta ! I consulted for Syncrude [6 months 1983].
I can't reproduce your "Combo box" 6179.

example.sm (3.93 KiB)已下载 1363 次。
#5 已发布: 2017/10/10 20:22:29
Davide Carpi

Davide Carpi

1,443个赞,共2,936个帖子。

组: Moderator

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 (8.79 KiB)已下载 1318 次。
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
1位用户喜欢此帖子
Mo 2017/10/11 01:21:00
#6 已发布: 2017/10/10 23:35:16
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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 (17.17 KiB)已下载 1150 次。

Image Formated LABEL.sm (24.5 KiB)已下载 1269 次。
1位用户喜欢此帖子
Mo 2017/10/11 01:21:00
#7 已发布: 2017/10/11 00:04:36
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

... 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
#8 已发布: 2017/10/11 01:23:02
Mo

Mo

0个赞,共34个帖子。

组: User

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
#9 已发布: 2017/10/11 10:06:21
Jean Giraud

Jean Giraud

983个赞,共6,866个帖子。

组: User

Wrote

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 (47.68 KiB)已下载 1259 次。

Image Formated LABEL [Oxyhemoglobin].sm (17.3 KiB)已下载 1087 次。

Genfit Oxyhemoglobin.sm (54.82 KiB)已下载 1336 次。

#10 已发布: 2017/10/11 13:03:00
CBG

CBG

78个赞,共312个帖子。

组: User

I think is better to use the result directly in the drawing by changing the units and hiding the name of the variable

Inser_Med_dib.png



example_IMD.sm (546.71 KiB)已下载 1330 次。
  • 有新帖
  • 无新帖