- **status**: accepted --> review
- **Comment**:

https://sourceforge.net/p/opensaf/mailman/message/32360574/



---

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

**Status:** review
**Milestone:** 4.5.FC
**Created:** Wed May 08, 2013 08:15 AM UTC by Anders Bjornerstedt
**Last Updated:** Tue May 20, 2014 02:29 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.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to