ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping the Float values

Post new topic  Reply to topic
 Mapping the Float values « View previous topic :: View next topic » 
Author Message
new_to_wmb8
PostPosted: Thu Jan 07, 2016 10:59 pm    Post subject: Mapping the Float values Reply with quote

Centurion

Joined: 28 May 2013
Posts: 127
Location: Hyderabad, India

Hi All,

I am facing an issue while mapping the float values .

I have created one sample flow picking the file from folder and parsing it as JSON . In the input file, we are getting value of one field as 652345646468684696638648438.838 . i have checked it in debugger, IIB parser make this value as Float 6.523456464686847E26.
In the compute node i am mapping this value to the output tree as :
SET OutputRoot.XMLNSC.Data.value1 = InputRoot.JSON.Data..spread;
then i have output queue but the message we are getting as 6.52345646468685E+26

we are lossing the original value . can anyone have faced the same issue?

Please suggest if possible

Thanks in advance
Back to top
View user's profile Send private message
timber
PostPosted: Fri Jan 08, 2016 1:16 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

Please read this thread:
http://www.mqseries.net/phpBB2/viewtopic.php?t=71415&postdays=0&postorder=asc&start=30

I think you need to set at least one of those environment variables.

Might be worth voting for this RFE, too:
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=82248
Back to top
View user's profile Send private message
martinb
PostPosted: Wed Jan 13, 2016 1:32 am    Post subject: Reply with quote

Master

Joined: 09 Nov 2006
Posts: 210
Location: UK

There is also an APAR that might be relevant in some contexts

IT08581: JSON DOMAIN INCORRECTLY ROUNDS FLOAT VALUES ON OUTPUT
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping the Float values
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.