Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1144
  • Last Modified:

Convert const char* to double

How do I convert const char* to double
0
wqclatre
Asked:
wqclatre
  • 2
  • 2
1 Solution
 
ozoCommented:
#include <stdlib.h>
double d = atof("1.5");

#include <stdio.h>
sscanf("1.5","%lf",&d);


0
 
wqclatreAuthor Commented:
Thanks!

Mark the question as answed!
0
 
ozoCommented:
answed
0
 
wqclatreAuthor Commented:
Thanks for answeing so fast!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now