Home » U++ Library support » U++ Core » Value: why not float support?
Re: Value: why not float support? [message #30176 is a reply to message #28537] |
Mon, 13 December 2010 15:47 |
|
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
sorry to bother again here..
in my struggle with the OSC protocol, a again came across this issue. OSC supports, together with int, int64, bool, etc.. the float AND double extra.
since i am using Value as the prefered container for all of it, i so far was working with the double as float Value, simply ignoring the fact that float doesnt exist.
i could use double for both, double and float, question, i need to distinguish them, because they need to be sent with different markers. so i have no means to distinguish them..
this is not possible when using double for both double and float:
...
if(v.Is<double>()) { /*send as double, "/osc/message,d 137884828388288.23828" */ }
else if(v.Is<float>()) { /*send as float, "/osc/message,f 123.43" */ }
and, also, the implicit conversions would be not possible.
any idea how to do that?
EDIT:
meanwhile i tried to extend value accordingly. here is a patchfile to revision 2902 to show where changes would occure.
[Updated on: Mon, 13 December 2010 16:31] Report message to a moderator
|
|
|
|
|
Value: why not float support?
By: kohait00 on Mon, 30 August 2010 10:54
|
|
|
Re: Value: why not float support?
By: mirek on Tue, 31 August 2010 15:49
|
|
|
Re: Value: why not float support?
By: kohait00 on Tue, 31 August 2010 16:11
|
|
|
Re: Value: why not float support?
By: mirek on Tue, 31 August 2010 18:49
|
|
|
Re: Value: why not float support?
By: kohait00 on Tue, 31 August 2010 22:02
|
|
|
Re: Value: why not float support?
By: gprentice on Wed, 01 September 2010 13:52
|
|
|
Re: Value: why not float support?
By: kohait00 on Wed, 01 September 2010 16:13
|
|
|
Re: Value: why not float support?
By: mirek on Thu, 02 September 2010 09:40
|
|
|
Re: Value: why not float support?
By: kohait00 on Thu, 02 September 2010 11:24
|
|
|
Re: Value: why not float support?
By: mirek on Mon, 06 September 2010 10:40
|
|
|
Re: Value: why not float support?
By: kohait00 on Mon, 06 September 2010 11:54
|
|
|
Re: Value: why not float support?
By: kohait00 on Mon, 13 December 2010 15:47
|
|
|
Re: Value: why not float support?
By: mirek on Wed, 15 December 2010 16:15
|
|
|
Re: Value: why not float support?
By: kohait00 on Wed, 15 December 2010 16:41
|
|
|
Re: Value: why not float support?
By: rylek on Mon, 20 December 2010 23:08
|
|
|
Re: Value: why not float support?
By: kohait00 on Tue, 21 December 2010 08:20
|
|
|
Re: Value: why not float support?
By: mirek on Fri, 24 December 2010 12:39
|
|
|
Re: Value: why not float support?
By: kohait00 on Fri, 24 December 2010 13:55
|
|
|
Re: Value: why not float support?
By: mirek on Sat, 25 December 2010 10:48
|
|
|
Re: Value: why not float support?
By: kohait00 on Sun, 26 December 2010 11:28
|
|
|
Re: Value: why not float support?
By: mirek on Mon, 27 December 2010 13:20
|
|
|
Re: Value: why not float support?
By: kohait00 on Mon, 27 December 2010 14:28
|
|
|
Re: Value: why not float support?
By: mirek on Mon, 27 December 2010 14:44
|
|
|
Re: Value: why not float support?
By: kohait00 on Tue, 28 December 2010 13:47
|
|
|
Re: Value: why not float support?
By: kohait00 on Mon, 07 March 2011 14:31
|
|
|
Re: Value: why not float support?
By: mirek on Mon, 07 March 2011 23:04
|
|
|
Re: Value: why not float support?
By: kohait00 on Tue, 08 March 2011 08:33
|
Goto Forum:
Current Time: Fri Nov 01 01:58:29 CET 2024
Total time taken to generate the page: 0.02858 seconds
|