json_value_create_real32 Subroutine

private subroutine json_value_create_real32(json, p, val, name)

Alternate version of json_value_create_real where val=real32.

Note

The value is converted into a real(RK) variable internally.

Type Bound

json_core

Arguments

Type IntentOptional Attributes Name
class(json_core), intent(inout) :: json
type(json_value), pointer :: p
real(kind=real32), intent(in) :: val
character(kind=CK, len=*), intent(in) :: name

Source Code

    subroutine json_value_create_real32(json,p,val,name)

    implicit none

    class(json_core),intent(inout)      :: json
    type(json_value),pointer            :: p
    real(real32),intent(in)             :: val
    character(kind=CK,len=*),intent(in) :: name

    call json%create_real(p,real(val,RK),name)

    end subroutine json_value_create_real32