
1. Re: How can I Convert Decimals to Fractions
Sorbsbuster Feb 15, 2009 4:27 PM (in response to TasunkeWitko)Welcome to the forum, TasunkeWitko,
I bet the answer is in here:
http://www.fmforums.com/forum/showtopic.php?tid/192065/
HTH,
Alan.

2. Re: How can I Convert Decimals to Fractions
comment_1 Feb 15, 2009 4:45 PM (in response to TasunkeWitko)Try:
Case ( Exposure Time < 1 ; "1/" & Round ( 1 / Exposure Time ; 0 ) ; Exposure Time )
The result type is Text.
Note that this works with standard shutter speeds  not all fractions in general.

3. Re: How can I Convert Decimals to Fractions
TasunkeWitko Feb 15, 2009 5:24 PM (in response to TasunkeWitko)Comment, Thank you for the quick reply! The formula works great! I'll test it with longer exposures (greater than 1 sec.) If I manually enter 3 seconds it returns 3 and 90 seconds as 90, so far so good. As a commercial photographer I routinely shoot at much longer exposures. It's great to have the shutter speed displayed correctly. Thanks again!

4. Re: How can I Convert Decimals to Fractions
comment_1 Feb 15, 2009 5:52 PM (in response to TasunkeWitko)Sorry, I missed that part. Try something like:
Let ( [
min = Div ( Exposure Time ; 60 ) ;
sec = Mod ( Exposure Time ; 60 )
] ;
Case ( min ; min & " min " )
&
Case ( sec ≥ 1 or not sec ; sec ; "1/" & Round ( 1 / sec ; 0 ) ) & " sec"
) 
5. Re: How can I Convert Decimals to Fractions
TasunkeWitko Feb 15, 2009 6:09 PM (in response to TasunkeWitko)I gave that a try, but it said the specified field could not be found. Thinking that I needed a min and sec fields, I added them. Didn't make a difference. There's no indication as to which "specified field could not be found", so I'm not certain what to do on that one. 
6. Re: How can I Convert Decimals to Fractions
comment_1 Feb 15, 2009 6:19 PM (in response to TasunkeWitko)It works here. The only field you need is Exposure Time. Which version are you using? 
7. Re: How can I Convert Decimals to Fractions
TasunkeWitko Feb 15, 2009 6:42 PM (in response to TasunkeWitko)Hmm... I'm trying out 10 right now. Might be something up with the trial version. I'm also having trouble importing tiffs and jpegs from a camera. Occasionally I get a dialog that says the image can't be displayed. I check the referenced file and it's 0kb, so FM isn't saving the file correctly/at all. The same image loads correctly if imported from a folder, but there's no metadata attached. I tried the same calculation in FM 6 but "Let" isn't legal there I guess. :( 
8. Re: How can I Convert Decimals to Fractions
comment_1 Feb 15, 2009 7:02 PM (in response to TasunkeWitko)
TasunkeWitko wrote:
I tried the same calculation in FM 6 but "Let" isn't legal there I guess. :(That is correct. It should work in any version from 7 and up  trial or not.

9. Re: How can I Convert Decimals to Fractions
TasunkeWitko Feb 15, 2009 7:18 PM (in response to TasunkeWitko)We'll try it out again tomorrow after FM10 has had a rest, or maybe it's me that's tired. :) 
10. Re: How can I Convert Decimals to Fractions
RSchaub Feb 15, 2009 7:23 PM (in response to TasunkeWitko)Custom Function here at http://www.briandunning.com/cf/55
Decimal to Fracton

11. Re: How can I Convert Decimals to Fractions
TasunkeWitko Feb 16, 2009 3:10 PM (in response to TasunkeWitko)Thanks for the link Alan, I found a couple of interesting ones that work well with receipes and woodworking, but so far nothing that works well with shutter speeds, with the exception of the one that comment gave me that works extremely well with shutter speeds shorter than one second and is pretty good with seconds. What I'd really like is one that displays shutter speeds correctly that are longer than one minute, which we do when we're shooting in low light situations and at night. I'd really not have to pull out the calculator to figure out that 1920 seconds is 32 minutes. :)
Thanks for the "Welcome" it's appreciated! 
12. Re: How can I Convert Decimals to Fractions
TasunkeWitko Feb 16, 2009 3:20 PM (in response to TasunkeWitko)Robert, thanks for that, the calculation works real well for the simple fractions, however .00625 returns as 0/64 instead of the correct 1/160. The actual data from the camera is about ten or 12 digits deep, so it's extremely accurate. Not sure how 1/8000th os a second would display :) 
13. Re: How can I Convert Decimals to Fractions
FentonJones Feb 17, 2009 12:21 AM (in response to TasunkeWitko)Try this fraction custom function (actually 3 which work together), at:
Mikhail Edoshin