I have to say that it makes me very upset when I read things that generally speaking put a person down because of something that they don't know. Part of the reason why some people - (including myself) - are afraid to ask questions is being in total fear of ridicule.
Some students at the online UNI that I'm studying at post questions on the messages boards with their name reading anonymous. This is terrible.
Unless you're a complete asshole - true knowledge is knowing nothing at all and not being a smart ass when you're able to help someone out with something. Besides, these people often fall flat on their ass when they're challenged by a true contender. Turns out that they actually know very little themselves. Pretending to be smart better put.
tico,
(ignores all the hard feelings going back and fourth)
As far as your original problem goes, how do you intend to hold a fractional number in memory? PBP only handles integers (sad but true).
So you are limited to schemes such as working with your values scaled up by say 1,000, so 1/16 would be stored as 62 (1/16 * 1000 and truncated to an integer) and you can divide by 62 to see how many 1/16 pieces it has.
I thought that I could use the method described in post 2 or 3
divide say 11.5 to get the following results
5/16 Vector1
15/16 Vector2
1 11/16 Vector3
2 5/8 Vector4
3 15/16 Vector5
5 3/4 Vector6Center
7 9/16 Vector7
8 7/8 Vector8
9 13/16 Vector9
10 9/16 Vector10
11 3/16 Vector11
I was hoping that this is possible to do with PBP, If I am wrong plese let me know. I am going to begin writing some code to do this tommorow.
opps forgot the formula..... as in excel
Round ((11.5/2) -((11.5/2)*(0.9)^0.5),3 = 5/16
I am hoping that PBP can process this type of formula, if not its back to the drawing board
Last edited by tico; - 27th April 2007 at 00:27. Reason: forgot formula
Yes and no, PBP have it's limit... it's not something new. But decent math approach would save the day.
To make a short story, PBP works with integer, nowhere in the manual you'll find an answer about floating points and or square power.
Thinking never killed... sure you use the easy route... but...
i think few people may need to relax or simply be ban out of here...
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi, Steve
Why not change the formula to :
16 x 115 / 4 x ( 200 - SQR ( 36 000 )) = 5 000 ( exactly 4721. .... ! PbP will return 5060 here ... )
PbP would do that without any pain ... but not very precisely, as you see !!!
Alain
Ok, ... also just look for possible overflows !!!
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Lets see 3 people involved in this thread at that time, Myself Mister_e and Skimask.
I guess you werent talking to yourself, you claim it wasnt towards me so you must have been saying it to mister_e.
but then again I am just a beginner at this, so maybe I have to refer to the little green book to get the right answer. I wonder what section that is under!
Bookmarks