C 语言实例 - 输出双精度(double)数

C 语言教程 · 2019-02-20 14:12:57

使用 printf()%e 输出双精度数。

实例

#include <stdio.h> int main() { double d; // 声明双精度变量 d = 12.001234; // 定义双精度变量 printf("d 的值为 %e", d); return 0; }

输出结果:

d 的值为 1.200123e+01

点击查看所有 C 语言教程 文章: https://codercto.com/courses/l/17.html

查看所有标签

Remote

Remote

Jason Fried、David Heinemeier Hansson / Crown Business / 2013-10-29 / CAD 26.95

The “work from home” phenomenon is thoroughly explored in this illuminating new book from bestselling 37signals founders Fried and Hansson, who point to the surging trend of employees working from hom......一起来看看 《Remote》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具