Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

  • Newbies

I need to convert a user-entered number formatted as "1.25" to time as "1:30" for time billing purposes. The entry field is numeric, and my calc field is time using "TextToTime(number_entered)." The result I get only seems to work with values entered as whole numbers (1, 2, 3). When the decimal value is entered the calc field does not display any value, regardless of its length or how it is formatted. Any suggestions?

Thanks,

Mike

>I need to convert a user-entered number formatted as "1.25" to time

>my calc field is time using "TextToTime(number_entered)."

Ummmm. I haven't checked this out, but shouldn't the field containing "1.25" be formatted as a text field since you are converting "Text to Time"? And of course you have the calculation Result is Time.

  • Author
  • Newbies

I tried changing it to a text field, but still get the same result, i.e. only works when whole number are entered.

The strange thing is I know I've gotten this to work before...

Mike

You said that it had been formatted, so I presume you have already gone to Format/Number, and set to at least two decimal digits?

If you're entering your time as hours and decimals hours, why not have it entered into a number field "Number_Input" and then use this calc (time result) to convert it to time format:

Display_Time = Time(Number_Input,0,0)

This will convert 1.25 hours into 1:15:00

If you want to send me an email, I can return a demo with some other handy time calcs in it...

  • Author
  • Newbies

Yes, I have. Thanks all; this calc works:

Display_Time = Time(Number_Input,0,0)

Mike

  • Author
  • Newbies

Thanks Russ. This worked.

Mike

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.