当前位置:网站首页>%F format character
%F format character
2022-07-04 15:35:00 【Zaltana】
Enter a real number , Output as real for the first time ; Keep it for the second time 2 Decimal output ; Keep it for the third time 3 Decimal places but minimum column width 8 Column output , The blank space to separate .
Format
Input format : Enter real
Output format : Output real , The blank space to separate .
Examples
Input : 31331.14345435
Output : 31331.143454 31331.14 31331.143
#include<bits/stdc++.h>
using namespace std;
int main( )
{
double n;
scanf("%lf", &n);
printf("%lf %.2lf %8.3lf" ,n,n,n);
return 0;
}
边栏推荐
猜你喜欢
Redis哨兵模式实现一主二从三哨兵
MySQL组合索引(多列索引)使用与优化案例详解
Unity脚本常用API Day03
Preliminary exploration of flask: WSGI
Helix Swarm中文包发布,Perforce进一步提升中国用户体验
一篇文章搞懂Go语言中的Context
MP3是如何诞生的?
音视频技术开发周刊 | 252
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
随机推荐
Unity预制件Prefab Day04
Nine CIO trends and priorities in 2022
Lombok使用引发的血案
[book club issue 13] coding format of video files
In today's highly integrated chips, most of them are CMOS devices
Unity animation day05
Unity script API - transform transform
Optimization method of deep learning neural network
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
Unity prefab day04
這幾年爆火的智能物聯網(AIoT),到底前景如何?
LeetCode 1184. 公交站间的距离 ---vector顺逆时针
Unity脚本API—Component组件
flutter 报错 No MediaQuery widget ancestor found.
MySQL index optimization
Unity script lifecycle day02
C implementation defines a set of intermediate SQL statements that can be executed across libraries
Logstash ~ detailed explanation of logstash configuration (logstash.yml)
【读书会第十三期】FFmpeg 查看媒体信息和处理音视频文件的常用方法
中国主要城市人均存款出炉,你达标了吗?