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 - Mensajes

#1 Publicado: 10/10/2017 15:55:09
Mo

Mo

0 me gusta en 34 mensajes.

Grupo: 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 Publicado: 10/10/2017 16:39:10
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

Maybe like this ?

Result.PNG
#3 Publicado: 10/10/2017 18:18:12
Mo

Mo

0 me gusta en 34 mensajes.

Grupo: 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) descargado 1339 vez(es).
thanks
#4 Publicado: 10/10/2017 19:14:12
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: User

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

example.sm (3,93 KiB) descargado 1331 vez(es).
#5 Publicado: 10/10/2017 20:22:29
Davide Carpi

Davide Carpi

1.443 me gusta en 2.936 mensajes.

Grupo: 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) descargado 1302 vez(es).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
A 1 usuarios les gustó este mensaje
Mo 11/10/2017 1:21:00
#6 Publicado: 10/10/2017 23:35:16
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1141 vez(es).

Image Formated LABEL.sm (24,5 KiB) descargado 1262 vez(es).
A 1 usuarios les gustó este mensaje
Mo 11/10/2017 1:21:00
#7 Publicado: 11/10/2017 0:04:36
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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 Publicado: 11/10/2017 1:23:02
Mo

Mo

0 me gusta en 34 mensajes.

Grupo: 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 Publicado: 11/10/2017 10:06:21
Jean Giraud

Jean Giraud

983 me gusta en 6.866 mensajes.

Grupo: 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) descargado 1242 vez(es).

Image Formated LABEL [Oxyhemoglobin].sm (17,3 KiB) descargado 1070 vez(es).

Genfit Oxyhemoglobin.sm (54,82 KiB) descargado 1328 vez(es).

#10 Publicado: 11/10/2017 13:03:00
CBG

CBG

78 me gusta en 312 mensajes.

Grupo: 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) descargado 1317 vez(es).
  • Nuevos mensajes
  • Sin mensajes nuevos