How do I round a double to one decimal place? [closed]
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I am trying to get a random double returned to me in the format #.# however I am getting a value of something to this effect: 0.9395772067578356 How do you force only a one decimal return on a random double as I