    @Test
    public void testGetFloatWX() throws Exception {

        Float test_float = WXUtils.getFloat("100wx");
        Float want = 100 * TEST_DENSITY * TEST_VIEW_PORT / TEST_SCREEN_WIDTH;
        assertEquals(test_float, want , 0.01);

        test_float = WXUtils.getFloat("100px");
        want = 100F;
        assertEquals(test_float, want);

        test_float = WXUtils.getFloat("100.2");
        want = 100.2F;
        assertEquals(test_float, want);

        test_float = WXUtils.getFloat(100.2F);
        want = 100.2F;
        assertEquals(test_float, want, 0.0001);

        test_float = WXUtils.getFloat(100.2D);
        want = 100.2F;
        assertEquals(test_float, want, 0.0001);

        test_float = WXUtils.getFloat("NaN");
        want = Float.NaN;
        assertEquals(test_float, want);
    }