Angelo2449
Guest
Hello everyone,
I would like, please, to know why this simple routine returns non-exact values:
the routine returns:
4420568.
69890
4529365.156
4.42057e+06
69890
4.52937+06
where 698901.0 is clearly wrong.
Thank you.
I would like, please, to know why this simple routine returns non-exact values:
Code:
(defun c: ecef (/)
(setq eck1 "4420568.319, 698901.058.4529365.156")
(setq cooxx (atof (vl- string- left- trim "" (substr eck1 1 11))); corordinata ecef x
(setq cooyy (atof (vl- string- left- trim "" (substr eck1 13 11)))
(setq coozz (atof (vl- string- left- trim "" (substr eck1 25))); corordinata ecef z
(pr "n")
(prc (vl- string- left- trim ")
(pr "n")
(prc (vl- string- left- trim ")
(pr "n")
(prc (vl- string- left- trim ")
(pr "n")
(cooxx trap)
(pr "n")
(cooyy prince)
(pr "n")
(coozz snap)
(pr "n")
)
4420568.
69890
4529365.156
4.42057e+06
69890
4.52937+06
where 698901.0 is clearly wrong.
Thank you.