I have a script that generates a number and sets it to a textbox. If, for example, the number was 6.3, I’d want to be able to convert this into 6 years 4 months.
Is there a quick way to do this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I note that this gives 3 for the month, not 4. Why do you think 6.3 should give 4 months? 6 years and 4 months is 6.333333 years.