# xEms2pixels

Convert an Em type size to pixels

Average rating: 5.0 (17 votes) Log in to vote

Nick Lightbody - Show more from this author
Deskspace Systems Limited http://deskspace.com |

Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

A simple conversion to enable web page proportions to be calculated to conform to golden ratio proportions etc, such calculations require pixels as the common measurement but responsive web pages are best constructed with Ems hence the need for this type of conversion.

## Comments

Bruce, Redmond WA Jan 13, 2016 |
||

Shouldn't that be: Let([ x=type size ems; //input r=Case( x< .53; 8; x< .59; 9; x< .66; 10; x< .73; 11; x< .78; 12; x< .84; 13; x< .91; 14; x< .98; 15; x< 1.03; 16; x< 1.09; 17; x< 1.16; 18; x< 1.23; 19; x< 1.28; 20; x<1.35; 21; x< 1.43; 22; x< 1.48; 23; x< 1.55; 24; x< 1.7; 26; x< 1.9; 29; x< 2.1; 32; x< 2.23; 35; x< 2.28; 36; x< 2.33; 37; x< 2.4; 38; x< 2.5; 40; x< 2.65; 42; x< 2.88; 45; x>= 2.88; 48 ) ]; r ) |
||

Nick, Sussex UK Jan 13, 2016 |
||

Hi Bruce, yes indeed, a big improvement - genuinely Concise! Cheers, Nick |
||

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.