Sybase float field

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sangi1981
Participant
Posts: 99
Joined: Fri Jun 13, 2008 8:10 am

Sybase float field

Post by sangi1981 »

Hi all,
Using DS8.1, Sybase like source and SqlServer like target I encountered a rounding problem reading float field.
In example, I read a float field with value 0.95, that become 0.949999....
In reference guide there is a note about this behavior, but is there workaround to solve it!?
Thank you very much.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Float is float so you'll have issues like this. Can you post the "note" from the reference guide you referred to?
-craig

"You can never have too many knives" -- Logan Nine Fingers
sangi1981
Participant
Posts: 99
Joined: Fri Jun 13, 2008 8:10 am

Post by sangi1981 »

Thanks for your replay.
This is a link where I found notices about limits reading sybase fields of type float:

http://publib.boulder.ibm.com/infocente ... pport.html


I found a workaround: instead of treat data as float I treat data as double: in this manner there is no truncation.
sangi1981
Participant
Posts: 99
Joined: Fri Jun 13, 2008 8:10 am

Post by sangi1981 »

Post Reply