public class ClockTest
{
public ClockTest ()
{
System.out.println(Math.round(500*Math.sin(30*Math.PI/180))) ;
System.out.println(Math.round(500*Math.sin((1/6)*Math.PI))) ;
}
public static void main(String[] args)
{
// TODO Auto-generated method stub
new ClockTest () ;
}
}
就是中间那两行println,按道理来说,两个出来的结果都是250,但是下面那个出来是0,真是奇怪