Shop OBEX P1 Docs P2 Docs Learn Events
SOLVED- putDec problem — Parallax Forums

SOLVED- putDec problem

idbruceidbruce Posts: 6,197
edited 2015-02-15 09:31 in Propeller 1
This does not work the way I thought it would. I keep getting 4095 to the terminal, regardless of the value assigned to nDec. What is wrong?

EDIT: Problem solved
#include "simpletools.h" 

int main(void)
{
  int nDec;
  nDec = 203;
  
  putDec(nDec);
  
  return 0;
}

Comments

  • pmrobertpmrobert Posts: 673
    edited 2015-02-15 08:58
    Bruce, how did you solve it? Does the current posted code contain the problem or the fix? Enquiring minds (mine!) want to know, please.

    -Mike
  • Heater.Heater. Posts: 21,230
    edited 2015-02-15 09:06
    Grrr...it's so annoying when people don't post the solutions to their problems when they find them.

    Come on Bruce.
  • idbruceidbruce Posts: 6,197
    edited 2015-02-15 09:20
    Mike

    The problem was that I was using the Parallax Serial Terminal, instead of the "Run with Terminal" option that is part of SimpleIDE.
  • pmrobertpmrobert Posts: 673
    edited 2015-02-15 09:31
    Thanks, Bruce - this will be added to my "list of weird things that aren't immediately obvious".

    -Mike
Sign In or Register to comment.