Skip to content

Instantly share code, notes, and snippets.

@dariogabriel113
Last active June 30, 2018 03:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dariogabriel113/245fe5c1770a2ddcd25c5236ac7fd576 to your computer and use it in GitHub Desktop.
Save dariogabriel113/245fe5c1770a2ddcd25c5236ac7fd576 to your computer and use it in GitHub Desktop.
public class TestConversion{
public static void main(String[] args){
float floatingPoint = 3.14f;
double salary = 1270.50;
int value = (int) salary;
System.out.println(value);
double value1 = 0.2;
double value2 = 0.1;
double total = value1 + value2;
System.out.println(total);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment