Hi sir,
Thank you for correcting me. Yeah, it is taking 12 bytes. But i am getting little bit worry about RO-Data increment. Why it is incrementing that much.
Can you explain it why?
Thank you sir.
Pardhu
User Profile
Collapse
-
pardhu0163 started a topic difference in between const char* n[ ]={"name1",..};, char* a[ ] ={"names1"..}in Cdifference in between const char* n[ ]={"name1",..};, char* a[ ] ={"names1"..}
Hi all,
I am using Keil Real view compiler for lpc1788 controller. It has 512k flash and 96k RAM memory.
After some programming on this, memory consumption is like this.
Program Size: Code=88112 RO-data=32960 RW-data=3544 ZI-data=27896
Now, i observed something after adding one array in main function, which i am not getting why it is happening like this?
...Code:main{ -
pardhu0163 replied to How to store the big values either int or floating values like our pc calculator?in CThank you...
I googled the term .But not getting correct results. Where can i get this lib file. And how to add it to my keil project...??Leave a comment:
-
pardhu0163 started a topic How to store the big values either int or floating values like our pc calculator?in CHow to store the big values either int or floating values like our pc calculator?
Hi all
I just wanted to know how to store big numbers (like more than 20 digit values) in a variable?
For those type of big values, whether float variable is good or int variable is good?
And finally, all these challenges i am facing in the process of coding for an application which contains calculator and it should give the accurate results as our windows pc calculator.
So, if any one having experience... -
yeah...that's working fine sir..
yesterday i faced rounding off problem. I need to store atleast 20 digits answer which may be in integer value or floatng value..like our pc calculator. How can i achieve this?
Thanks in advance.
Regards
PardhuLeave a comment:
-
Thank you sir,It's working fine.
Though i am getting correct result, have to...Code:int main( void ) { long double v=123456.001; char str[20]; TFT_Init(); sprintf(str,"%Lf",v); sprint(100,30,str,GUI_WHITE,1,1); sprintf(str,"%.3f",v); sprint(100,50,str,GUI_WHITE,1,1); } //output1 : 123456.001000 //output2 : 123456.001Leave a comment:
-
Hi sir, Thank you for your reply. I used sprintf function. It's working but not accurately.plea se check out my core piece of code, and if anything wrong in that, rectify me.
...Code:int main( void ) { char str[20]; long double v=1230.0000123456f; TFT_Init();// Initialising the TFT sprintf(str, "%f", v ); sprint(100,50,(const unsigned char*)str,GUI_WHITE,1,2);Leave a comment:
-
Help.. regarding string to float and float to string converion in C
Hi guys,
I just wanted to convert the input string to float and my result get back to string format.my result is in float, long double formats).
In my stdlib.h file, atof fuynction is there, but it's occupying huge memory when i call that function and for float to string there no function at all in that lib file.
So, can any one help to implement those two converion functions..?
Thanks in adva... -
pardhu0163 started a topic How to fill gradient colors in a rectangle?(gradient effect may be lenear, diagonal,in CHow to fill gradient colors in a rectangle?(gradient effect may be lenear, diagonal,
Hi, i want to create a function to draw the gradient bars on TFT screen. So, can any one knows how much i have to increase/decreasee the color value in each step/in multiple steps.
I am thinking that based on the sizes of bar, you have to calculate the step size. ??
No activity results to display
Show More
Leave a comment: