Rom2Arab

Rom2Arab - Arab2Rom - Poruke

#1 Objavljeno: 18. 10. 2023. 22:06:10
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Why doesn't the cycle end?
See please the attachRome-Arab.sm (40,3 KiB) preuzeto 1558 put(ova).
#2 Objavljeno: 19. 10. 2023. 00:53:00
Oscar Campo

Oscar Campo

135 svidjanja u 309 postova.

Grupa: Moderator

Really it's a very strange bahavior (a bug ?), because the value of variable n is cleared when function returns from Arab2Rom()
So, a solution is to use functions fwrite() and rfile() to save the value of n on a file as a memory:

memory.png


See the atachment with the solution: Rome-Arab SOLVED.sm (41,21 KiB) preuzeto 1564 put(ova).

best,
Oscar
1 korisnika je svidelo ovu objavu
Valery Ochkov 19. 10. 2023. 01:08:00
#3 Objavljeno: 19. 10. 2023. 01:30:20
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Hi. In Arab2Rom(n) you modify n.

Clipboard02.png

That's not good practice. This is a workaround for such cases.

Clipboard01.png

Best regards.
Alvaro.
2 korisnika je svidelo ovu objavu
Valery Ochkov 19. 10. 2023. 01:46:00, Oscar Campo 19. 10. 2023. 01:46:00
#4 Objavljeno: 19. 10. 2023. 01:42:23
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Thanks!

But this have an error too!
Rom2Arab.sm (293,29 KiB) preuzeto 1552 put(ova).
#5 Objavljeno: 19. 10. 2023. 01:52:56
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

Wrote

Thanks!

But this have an error too!
Rom2Arab.sm (293,29 KiB) preuzeto 1552 put(ova).



That's another function, not similar with the others above. Here the problem is the origin in Mathcad for strings. Try to set ORIGIN = 1 in Mathcad and rewrite the code.

Best regards.
Alvaro.
#6 Objavljeno: 19. 10. 2023. 02:13:24
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Wrote

Wrote

Thanks!

But this have an error too!
Rom2Arab.sm (293,29 KiB) preuzeto 1552 put(ova).



That's another function, not similar with the others above. Here the problem is the origin in Mathcad for strings. Try to set ORIGIN = 1 in Mathcad and rewrite the code.

Best regards.
Alvaro.


RA.png

#7 Objavljeno: 19. 10. 2023. 02:43:57
Alvaro

Alvaro

1.139 svidjanja u 1.805 postova.

Grupa: User

This is one way.

Clipboard01.png

Best regards.
Alvaro.
1 korisnika je svidelo ovu objavu
Valery Ochkov 19. 10. 2023. 02:49:00
#8 Objavljeno: 19. 10. 2023. 02:49:12
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Wrote

This is one way.

Clipboard01.png

Best regards.
Alvaro.



Thanks,
send please the sm-file!
#9 Objavljeno: 23. 10. 2023. 00:30:24
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

My salary in 1980
ATM-SU.png
ATM-SU.sm (6,29 KiB) preuzeto 1543 put(ova).
Rubles.png
#10 Objavljeno: 23. 10. 2023. 01:34:42
Martin Kraska

Martin Kraska

1.369 svidjanja u 2.283 postova.

Grupa: Moderator

If I remember correctly, 1988 a bottle of vodka (0.5l) was 3 rubles (if you got it at all, it was the time of prohibition - сухой закон). Therefore the 3-ruble-notes.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
1 korisnika je svidelo ovu objavu
Valery Ochkov 23. 10. 2023. 02:31:00
#11 Objavljeno: 23. 10. 2023. 02:24:31
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

Wrote

If I remember correctly, 1988 a bottle of vodka (0.5l) was 3 rubles (if you got it at all, it was the time of prohibition - сухой закон). Therefore the 3-ruble-notes.



2 рубля 87 копеек = 2.75 vodka + 0.12 bottle.

Three constants of soviet students 3.14, 2.87, 2.72
vodka.png
#12 Objavljeno: 28. 10. 2023. 16:11:54
Valery Ochkov

Valery Ochkov

75 svidjanja u 735 postova.

Grupa: User

There are also zeros in Roman numerals. See my photo from Greenwich.
And four is written this way IIII and not that way IV because there are only 12 and not 13 digits.
Arabic-0.png
  • Novi postovi
  • Nema novih postova