|
|||||||
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#1 | |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,143
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI|K4|K3-3G|DXG|Ematic E6+E8|Rooted Nook Touch|NO K2!!
|
The operator >> is undefined for the argument type(s) float, float
Java: 1.4.blah bitwise operators aren't overloaded to comprehend int >> float and vice versa thought's? code: floatA >> 0 & 0x1 results in Quote:
SO... Do I need to include a relevant library to provide overloaded maths operators? if so anyone have any suggestions on such wonders? Or perhaps overload the function myself if that is allowed, AFAIK it is. Or some third option involving doofy syntax errors, or just good old fashioned lack of understanding. Reading up on stack overflow etc.. and reffing the java 1.4.2 http://docs.oracle.com/javase/1.4.2/...eredImage.html Personal basis http://docs.oracle.com/javame/config...217/index.html and KDK 1.3 https://kdk-javadocs.s3.amazonaws.com/1.3/index.html For general reference while I get up to speed. Thanks for your time.
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set Last edited by twobob; 09-05-2012 at 10:16 AM. |
|
|
|
|
|
|
#2 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,143
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI|K4|K3-3G|DXG|Ematic E6+E8|Rooted Nook Touch|NO K2!!
|
I did consider casting solutions but they don't seem likely to make this go away. but I could be wrong.
the ultimate goal is to derive two ints [thisIsJustAnIndicationOfTheVariableType] one: [float] + [int] >> 1 & 0x1 * [float] two: [float] + [int] >> 0 & 0x1 * [float] which I assume is a 3d rotation matrix wangle of some kind from the look of it. ta very much. AND YES. I am gurgling it like a good little dev: Go go google
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set Last edited by twobob; 09-05-2012 at 10:23 AM. |
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,294
Karma: 4929663
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
bitwise operators are only defined for types on which they make sense
![]() (and no, operators cannot be overloaded in Java). what are you trying to achieve? |
|
|
|
|
|
#4 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,895
Karma: 2267781
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w & PW
|
@twobob: Like ixtab said, I don't think bitwise operations make much sense on floats... (And FWIW, a C/C++ compiler would also throw the same kind of error: don't
).
Last edited by NiLuJe; 09-05-2012 at 10:30 AM. |
|
|
|
|
|
#5 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,143
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI|K4|K3-3G|DXG|Ematic E6+E8|Rooted Nook Touch|NO K2!!
|
well. yeah. I cant deny it's a puzzler.
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
#6 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,143
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI|K4|K3-3G|DXG|Ematic E6+E8|Rooted Nook Touch|NO K2!!
|
ho well. looks like I'll have to roll all the maths out by hand and rework it then.
sigh.
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
#7 |
|
Mayan Goddess
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,294
Karma: 4929663
Join Date: Dec 2011
Device: K3/K4/K5/PW
|
... or you could just use jad and only fix a few minor hickups that it produces - check your PMs
|
|
|
|
|
|
#8 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,143
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI|K4|K3-3G|DXG|Ematic E6+E8|Rooted Nook Touch|NO K2!!
|
have done! will do!
![]() Thanks
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
#9 | |
|
Всё гениальное просто.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,023
Karma: 6352591
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
|
Quote:
For example, take a look at these: http://aggregate.org/MAGIC/#Absolute Value of a Float http://aggregate.org/MAGIC/#Comparison of Float Values
__________________
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
![]() Last edited by geekmaster; 09-05-2012 at 11:36 AM. |
|
|
|
|
|
|
#10 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,143
Karma: 5328985
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI|K4|K3-3G|DXG|Ematic E6+E8|Rooted Nook Touch|NO K2!!
|
yeah. I more or less figured that is what was happening.
Oh joy, I get to learn another languages minutia again, that's 3 in the last two months. Might need a quick break since I have no freaking idea how to patch back together the loops jad has dumped and my head hurts now after a 48 hour stint of fanning another aspect of ecplipse into actual useful service. Any Java developers want to jump in? feel free. : )
__________________
Audiophile and electron bully. My tunes (for free) soundcloud.com/twobob. DONATE TO KUAL BY CLICKING THIS SIMPLE LINK Kung-Fu. Hard work over time to accomplish skill. A painter can have kung-fu... The musician can have kung-fu, or the poet who paints pictures with words and makes emperors weep. This, too, is kung-fu. Formless, nameless, the true master dwells within. Only you can free him. The album I'm headlining on at the moment: s.beatport.com/OCp9dT - FREE: 2012 Award winning set |
|
|
|
|
|
#11 |
|
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,895
Karma: 2267781
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w & PW
|
@geekmaster: Yes, but that implies changing data types (a double)
. There's indeed a bunch of workaround/tricks in C/C++ if you really want to do it, but they all imply switching data types/playing with the representation of a float. I just meant that you can't do bitwise ops on the float data type 'as-is' .
Last edited by NiLuJe; 09-05-2012 at 01:03 PM. |
|
|
|
![]() |
| Tags |
| foof, java, kindle3, kindlet, programming |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Help]Under Kindlet2.1, There're no Float and Double class! | isaac.hu | Kindle Developer's Corner | 1 | 04-26-2012 02:13 AM |
| Float bug in ADE ? | helenouchkaia | ePub | 16 | 01-08-2012 11:11 AM |
| float not working as expected in ADE | iain robinson | ePub | 8 | 06-18-2011 04:16 AM |
| How to "float" illustrations correctly? | lindsayw | Workshop | 5 | 03-29-2011 08:09 AM |
| PRS-600 Sony library - Error undefined | omk3 | Sony Reader | 13 | 01-22-2010 10:52 AM |