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 » Controlling the format of FLOAT cast as CHAR

Post new topic  Reply to topic
 Controlling the format of FLOAT cast as CHAR « View previous topic :: View next topic » 
Author Message
KevinCampbell
PostPosted: Thu Feb 06, 2003 7:34 am    Post subject: Controlling the format of FLOAT cast as CHAR Reply with quote

Newbie

Joined: 06 Feb 2003
Posts: 2
Location: Seattle, WA

MQSI 2.02

I'm building an XML output message and need to set a value based on the result of dividing two floats. Since all XML elements are essentially string data, the number is implicitly being CAST to a CHAR.

When using CAST() the numeric representation of small numbers is in exponential format, as the manual describes.

0.55 becomes 5.5E-1

Does anyone know of a way to control this formatting behaviour? Ideally I would like to be able to specify a format template to be used when creating the CHAR representation of the float.

Kevin
Back to top
View user's profile Send private message Visit poster's website AIM Address
yaakovd
PostPosted: Thu Feb 06, 2003 8:58 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Do you have any problem using DECIMAL format?
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
KevinCampbell
PostPosted: Thu Feb 06, 2003 11:06 am    Post subject: Other than.. Reply with quote

Newbie

Joined: 06 Feb 2003
Posts: 2
Location: Seattle, WA

It hadn't occurred to me!

Thanks for the suggestion, I think that decimal will probably do just fine. I had not looked that deeply into the difference between the two types.

Kevin
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Controlling the format of FLOAT cast as CHAR
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.