Shop OBEX P1 Docs P2 Docs Learn Events
Nested Float32full code — Parallax Forums

Nested Float32full code

Sniper KingSniper King Posts: 221
edited 2008-09-26 18:26 in Propeller 1
How nested can the float object be?· Will this cause problems?
example:

xl:=fp.fround(fp.fadd(fp.fmul(fp.cos(plrad),3.0),64.0))·····

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·- Ouch, thats not suppose to be hot!··


Michael King
Application Engineer
R&D

Check out Project: PSAV Persistent Sailing Autonomous Vehicle

Comments

  • BradCBradC Posts: 2,601
    edited 2008-09-26 17:34
    given each call is processed in sequence, then I don't see it posing a problem in the least.
    Go your hardest! (or until you run out of stack anyway)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Pull my finger!
  • Sniper KingSniper King Posts: 221
    edited 2008-09-26 17:42
    Cool Thanks.
    I have this problem where everything works fine until i run one of my methods that are called manually then the method will run for the thirty seconds it is suppose to run then when I try to go to another method it won't go! There is alot of math there. Then it calls a Fullduplexserial (comm.str) in a different method but it won't work.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·- Ouch, thats not suppose to be hot!··


    Michael King
    Application Engineer
    R&D

    Check out Project: PSAV Persistent Sailing Autonomous Vehicle
  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-26 18:26
    I'm sure there's a nesting limit in the compiler, but it's deeper than you are likely to write and you'll get an error message.

    You do keep mentioning about things not working sometimes. You're welcome to vent your frustration, but the problem is likely to be one part of your program scribbling on another part of your program and the kind and amount of information you're providing isn't the sort of thing that will produce an explanation or a fix. Slow and methodical debugging will likely work.
Sign In or Register to comment.