gws_core

Introduction
Getting Started
Developer guide
Release
Architecture
CLI
Technical documentations
Version

NumericHelper

Helper to manipulate numerics

Functions
is_float @staticmethod

Check if value is float

value : Any
Return type : bool
is_int @staticmethod

Check if value is int

value : Any
Return type : bool
list_2d_to_float @staticmethod

Convert a list of list of any to list of list of float. Replace infinity by default_value

list_2d : List
_description_
remove_none : bool - False
if False, the non converted element are keep as None, if True they are removed
default_value : Any
Return type : List
list_to_float @staticmethod

Convert a list of any to list of float. Replace infinity by default_value

list_ : List
_description_
remove_none : bool - False
if False, the non converted element are keep as None, if True they are removed
default_value : Any
Return type : List
list_to_int @staticmethod

Convert a list of any to list of int.

list_ : List
_description_
remove_none : bool - False
if False, the non converted element are keep as None, if True they are removed
Return type : List
to_float @staticmethod

Convert any to float. If NaN, inf or not convertible to float, returns default_value

value : Any
default_value : Any
Return type : Optional
to_int @staticmethod

Convert any to int. If not convertible to int or NaN, returns None

value : Any
default_value : Any
Return type : Optional