当前位置:网站首页>%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;
}
边栏推荐
- Case sharing | integrated construction of data operation and maintenance in the financial industry
- LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
- Unity prefab day04
- Unity update process_ Principle of unity synergy
- Halcon knowledge: NCC_ Model template matching
- Width and alignment
- Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
- Unity预制件Prefab Day04
- Optimization method of deep learning neural network
- . Net applications consider x64 generation
猜你喜欢
Helix swarm Chinese package is released, and perforce further improves the user experience in China
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
【大连理工大学】考研初试复试资料分享
flutter 报错 No MediaQuery widget ancestor found.
MySQL学习笔记——数据类型(数值类型)
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
Flutter reports an error no mediaquery widget ancestor found
Live broadcast preview | PostgreSQL kernel Interpretation Series II: PostgreSQL architecture
AI做题水平已超过CS博士?
Numpy notes
随机推荐
Redis shares four cache modes
Flutter reports an error no mediaquery widget ancestor found
Unity动画Animation Day05
Go deep into the details of deconstruction and assignment of several data types in JS
Functional interface, method reference, list collection sorting gadget implemented by lambda
Weibo and Huya advance into interest communities: different paths for peers
odoo数据库主控密码采用什么加密算法?
MySQL学习笔记——数据类型(2)
PXE网络
夜天之书 #53 Apache 开源社群的“石头汤”
Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?
华为云数据库DDS产品深度赋能
hexadecimal
Usage of database functions "recommended collection"
MySQL - MySQL adds self incrementing IDs to existing data tables
Preliminary exploration of flask: WSGI
Unity update process_ Principle of unity synergy
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
Deep learning network regularization
Unity script lifecycle day02