← 返回 pinterest 的题目列表Round string to specified precision
类型:online_judge
Round the string s to the specified precision p.
Input Format
s: A string representing a number.
p: A string representing the precision, such as 100 or 0.1.
Output Format
Return the result rounded to the specified precision as a string.
Example
Input: s='12567', p='100'
Output: '12600'
Input: s='1234.678', p='0.1'
Output: '1234.7'
Example
Input
12567
100