import java.lang.Math;
class Gfg {
// driver code
public static void main(String args[])
{
// float numbers
float x = 4567.9874f;
// find the closest int for these floats
System.out.println(Math.round(x));
float y = -3421.134f;
// find the closest int for these floats
System.out.println(Math.round(y));
double positiveInfinity = Double.POSITIVE_INFINITY;
// returns the Integer.MAX_VALUE value when
System.out.println(Math.round(positiveInfinity));
}
}
Java
IBM EXAM ANS 6PM
Telegram:- @allcoding1
class Gfg {
// driver code
public static void main(String args[])
{
// float numbers
float x = 4567.9874f;
// find the closest int for these floats
System.out.println(Math.round(x));
float y = -3421.134f;
// find the closest int for these floats
System.out.println(Math.round(y));
double positiveInfinity = Double.POSITIVE_INFINITY;
// returns the Integer.MAX_VALUE value when
System.out.println(Math.round(positiveInfinity));
}
}
Java
IBM EXAM ANS 6PM
Telegram:- @allcoding1
👍4
x = float(input())
n = int(input())
If n<1 and n>2:
print("Invalid Input")
else:
print(round(x,n))
#Python abridged ans
Telegram:- @allcoding1
n = int(input())
If n<1 and n>2:
print("Invalid Input")
else:
print(round(x,n))
#Python abridged ans
Telegram:- @allcoding1
👍6👎1
🎯HCL Technologies Off Campus Freshers Recruitment Hiring For Analyst Role | 4.2 LPA
Job Role Senior analyst
Education B.Tech
Experience 0-2.5 Years
CTC/Salary 4.2 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
Job Role Senior analyst
Education B.Tech
Experience 0-2.5 Years
CTC/Salary 4.2 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
👍1
👍2
🎯HCL Technologies Off Campus Freshers Recruitment Hiring For Analyst Role | 4.2 LPA
Job Role Senior analyst
Education B.Tech
Experience 0-2.5 Years
CTC/Salary 4.2 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
Job Role Senior analyst
Education B.Tech
Experience 0-2.5 Years
CTC/Salary 4.2 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
🎯TCS NQT Registration 2023 | TCS Off Campus Drive 2023 For Freshers
Test National Qualifier Test (NQT)
Qualification B.E/B.Tech/Any Degree/Diploma
Batch Any Batch Passouts (2018/2019/2020/2021/2022/2023 )
Salary upto 19 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
Test National Qualifier Test (NQT)
Qualification B.E/B.Tech/Any Degree/Diploma
Batch Any Batch Passouts (2018/2019/2020/2021/2022/2023 )
Salary upto 19 LPA
Apply Now:- http://www.allcoding1.com
Telegram:- @allcoding1
👍3
Forwarded from allcoding1_official
Forwarded from allcoding1_official
Forwarded from allcoding1_official