Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 6633 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi all,

How can I get the number like this:

My number field 10,[color:red]567.89

Now I need to get the number [color:red]5, can this be done? I was using Left function but can't do it.

Any Idea? Thank for reply!

Posted

You need to supply more information with this. Why are you doing this? Are you looking for the number '5' or are you looking for the third digit from the decimal point (hundred)

Posted

Hi,

One tidbit if you need to use a text function, convert the number to text using GetAsText(number) like so.

Filter(GetAsText(12345.60);"5")

would return = 5

Tim

Posted

Here's my stab at it:

Let([tt=Int(entry);ss=Length(tt)];

Replace ( tt ; ss-2; 1 ; "," & TextColor(Middle ( tt ; ss-2 ; 1 );16711680)) & "." & Middle(entry-tt & "00";2;2))

Provided you wish to colour the digit red in a text field with the number string ...otherwise can you tear appart the components to get what you're after.

--sd

Posted

Hi mr_vodka,

You are right! I'm looking for the third digit from the decimal point and not only third digit I need to looking up all the digit one by one. Like:

Amount field - 10,567.89

Field 1 - 9

Field 2 - 8

Field 3 - 7

Field 4 - 6

Field 5 - 5

Field 6 - 0

Field 7 - 1

Any Idea? Thank for reply!

Posted

Field 1 - 9

Field 2 - 8

Field 3 - 7

Field 4 - 6

Field 5 - 5

Field 6 - 0

Field 7 - 1

Since you can cut up a repeating field could this be written into a single repeating calc'field:

Mod ( Div ( Round(Extend ( entry );2) ; 10^(Get (CalculationRepetitionNumber )-3) ) ; 10 )

--sd

This topic is 6633 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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