CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 4 matches
CCS Forum Index
Author Message
  Topic: itol("100000") = 34464...... Why?
williankleber

Replies: 9
Views: 11576

PostForum: General CCS C Discussion   Posted: Tue Sep 18, 2012 7:57 am   Subject: Fixed...
solved using atoi32()...
Follow the hint of bkamen, and found all the documentation in the HELP Files of PICC.


Posted: Mon Sep 17, 2012 6:11 pm Post subject:

This is my code

You still d ...
  Topic: itol("100000") = 34464...... Why?
williankleber

Replies: 9
Views: 11576

PostForum: General CCS C Discussion   Posted: Mon Sep 17, 2012 2:56 pm   Subject: itol("100000") = 34464...... Why?
This is my code:
#include <18F4520.h>
#use delay(clock=4000000)
#include <stdio.h>
#include <stdlib.h>
#include "lcd.c"
#include <math.h>
void main( ...
  Topic: itol("100000") = 34464...... Why?
williankleber

Replies: 9
Views: 11576

PostForum: General CCS C Discussion   Posted: Mon Sep 17, 2012 2:34 pm   Subject: itol("100000") = 34464...... Why?
I changed my code to
while (1){
unsigned int32 k;
char u[] = "100000";
printf(lcd_putc,"\fu = %s",u);
delay_ms(2000 ...
  Topic: itol("100000") = 34464...... Why?
williankleber

Replies: 9
Views: 11576

PostForum: General CCS C Discussion   Posted: Mon Sep 17, 2012 2:21 pm   Subject: itol("100000") = 34464...... Why?
int16 k;
char u[] = "100000";
k = atol(u);

At the end of this code, the variable "K" takes the value 34464.

I'm using PICC PCW and the PIC ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group