Jump to content
  • 0

Time to Number


HeyItsDoug
 Share

Question

Hi,

I have a text field containing for example:   10.30  The value will always be xx.xx     How can I convert this text value(numbers) to a number datatype that I can use for aggregating?  I've tried to use CONVERT but I cant figure out which datatype to use.  Ideally, I'd like to do this conversion within a table formula so I can use it in multiple places within my application.

Any help appreciated!

Doug

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @HeyItsDoug,

To use text values as numbers, you may convert them explicitly to Float like this: CONVERT(float, [@field:text])

You can add it to the Formula field in the table or in the Calculated field on the DataPage.

More about Convert function can be found here: 
https://www.w3schools.com/sql/func_sqlserver_convert.asp
https://howto.caspio.com/function-reference/

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...