Message 1 of 11
Comma to point decimal separator

Not applicable
07-06-2000
08:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I need a quick routine (R14 AutoLisp)
to change the decimal separator from comma
(Italian style) to point:
(setq
qta "123,456"
qta2 (itoa (atoi qta))
qta2 (strcat qta2 "." (substr qta (+ 2 (strlen qta2))))
)
123.456
Maybe there is something better.
__________________________________
Marc'Antonio Alessi
(strcat "NOT a " (substr (ver) 5 4) " guru.")
__________________________________
to change the decimal separator from comma
(Italian style) to point:
(setq
qta "123,456"
qta2 (itoa (atoi qta))
qta2 (strcat qta2 "." (substr qta (+ 2 (strlen qta2))))
)
123.456
Maybe there is something better.
__________________________________
Marc'Antonio Alessi
(strcat "NOT a " (substr (ver) 5 4) " guru.")
__________________________________