Turtle85 0 Newbie Poster

hey guys,

I would like to know the syntax in Java for truncating variables of type Double.

The code below is in Pascal and i would like to know how to write it in Java:

x := trunc(y +7/h);

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.