- **status**: review --> fixed
- **Comment**:

default(4.5):

changeset:   5164:2579607cb3af
user:        Zoran Milinkovic <zoran.milinko...@ericsson.com>
date:        Tue Apr 15 16:10:24 2014 +0200
summary:     IMMTOOLS: fix printing and dumping for float and double values 
[#53]

changeset:   5165:f9047da95476
tag:         tip
user:        Zoran Milinkovic <zoran.milinko...@ericsson.com>
date:        Tue Apr 15 16:20:03 2014 +0200
summary:     IMM: fix loading double values from PBE in immload [#53]



---

** [tickets:#53] IMM: SaDoubleT and SaFloatT attributes not handled correctly**

**Status:** fixed
**Milestone:** 4.5.FC
**Created:** Wed May 08, 2013 08:15 AM UTC by Anders Bjornerstedt
**Last Updated:** Tue Apr 15, 2014 02:42 PM UTC
**Owner:** Zoran Milinkovic

Migrated from:
http://devel.opensaf.org/ticket/1554

Attribute values defined on either of the two floating point types,
SaFloatT or SaDoubleT, are not handled correctly by the immsv.
The problem occurs when transforming to external representation,
both for transport (MDS) and storage (dump to xml or PBE).

There is no htonl/ntohl for floats and when formating to ascii
for xml/PBE the precision is insufficient.

The solution should be to transform to ascii for *both* transport
and storage and to use maximum precision in the formating and scaning.

The priority for this should perhaps be "major".
I have set it to "minor" only because there are very few real immsv
applications that use SaFloatT or SaDoubleT. In fact I know of none.
If there where any I think this problem would have been noted
earlier. 
-------------------------------------------------------------------
Changing this ticket to an enhancement.
I think the only problem with the current support for float and double in immsv
is that precision may be lost in the conversion between host and network byte 
order
and the casting too and from long int and long long int.



---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to