Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for float_convertor (0.2 sec)

  1. tests/test_starlette_urlconvertors.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/int/{param:int}")
    def int_convertor(param: int = Path()):
        return {"int": param}
    
    
    @app.get("/float/{param:float}")
    def float_convertor(param: float = Path()):
        return {"float": param}
    
    
    @app.get("/path/{param:path}")
    def path_convertor(param: str = Path()):
        return {"path": param}
    
    
    @app.get("/query/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 27 14:46:06 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Floats.java

            result);
        return (int) result;
      }
    
      private static final class FloatConverter extends Converter<String, Float>
          implements Serializable {
        static final Converter<String, Float> INSTANCE = new FloatConverter();
    
        @Override
        protected Float doForward(String value) {
          return Float.valueOf(value);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/primitives/Floats.java

            result);
        return (int) result;
      }
    
      private static final class FloatConverter extends Converter<String, Float>
          implements Serializable {
        static final Converter<String, Float> INSTANCE = new FloatConverter();
    
        @Override
        protected Float doForward(String value) {
          return Float.valueOf(value);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 15:52:18 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top