Announcement

Collapse
No announcement yet.

Tip float to char* conversion

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Tip float to char* conversion

    gcvtf(float,int,char*);

    very useful for genieWriteStr(index, char*)

    use the int for precision. Example: 4 gives four numbers. 3.1248752 prints as 3.124

  • #2


    gcvt(double,int,char*);

    Same thing but used for doubles. Thought I would add this as well.

    By the way, similar functions can be found in the stdlib.h for MPIDE and Arduino as it has most of the lib from C.

    Comment

    Working...
    X