All:
Has anyone a more elegant way to convert TEXT fractional values to
DOUBLE decimal values:
SET VAR vHumpty TEXT = '7/8'
SET VAR vDumpty DOUBLE = (FLOAT ( ( NINT(SSUBCD(.vHumpty,1,'/' ) ) ) /
(NINT(SSUBCD(.vHumpty,2,'/' ) ) ) ) )
SHOW VAR vDumpty ... 0.875
Something in loco parentheses would be great!
Thoughts?
Bruce
Bruce A. Chitiea
SafeSectors, Inc.
-----------------------------------
112 Harvard Ave #272
Claremont CA 91711-4716
-----------------------------------
[email protected]
-----------------------------------
+011 (909) 238-9012 c
+011 (909) 912-8678 f
--
For group guidelines, visit
http://www.rbase.com/support/usersgroup_guidelines.php
---
You received this message because you are subscribed to the Google Groups "RBASE-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rbase-l/em534fa79d-aca0-4bdb-8e46-79692927c094%40pathfinder.