TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: TopoWAR on September 27, 2014, 11:34:49 AM
-
hello all, I was brought autocad 2013 problem, the following code returns a value without decimals me and I wonder what is the reason? I have searched and not what is the problem, I appreciate your help!
(setq a (atof "215418.631"))
(rtos a 2 3)
returns -> "215418.000"
-
And what if you use (rtos a 2 14)
-
CAB , testing testing and found the problem, the cause is a function of DOS_LIB, if I apply the following function gives me the problem of decimals, not having to do this but only because in autocad 2013, it is strange
(dos_getfiled "Archivo de Coordenadas" (if archivo_ruta archivo_ruta (getvar "dwgprefix")) "Archivo de Texto (*.txt)|*.txt|Todos los Archivos (*.*)|*.*||")
-
not a problem here
What version of Dos_lib are you running??
-
not a problem here
What version of Dos_lib are you running??
I know, the version is 9.0.1 dos_lib last, when I asked for help did not know that the problem was outside lisp.
-
I too am running DOS_LIB 9.0.1 on AutoCAD 2013 and am NOT having the issue. This may not be a DOS_LIB issue.