- **status**: unassigned --> assigned
- **assigned_to**: Zoran Milinkovic
- **Milestone**: future --> 4.5.FC



---

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

**Status:** assigned
**Milestone:** 4.5.FC
**Created:** Wed May 08, 2013 08:15 AM UTC by Anders Bjornerstedt
**Last Updated:** Wed May 08, 2013 08:15 AM 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.
------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to