[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64960] jsonencode produces different results
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #64960] jsonencode produces different results for single inputs than Matlab |
Date: |
Fri, 1 Dec 2023 19:34:06 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?64960>
Summary: jsonencode produces different results for single
inputs than Matlab
Group: GNU Octave
Submitter: rik5
Submitted: Fri 01 Dec 2023 04:34:04 PM PST
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: Confirmed
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: dev
Discussion Lock: Any
Operating System: Any
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Fri 01 Dec 2023 04:34:04 PM PST By: Rik <rik5>
In Matlab,
str = jsonencode (single (50.025))
=>
str = '50.025'
while in Octave
str = jsonencode (single (50.025))
=>
str = '50.025001525878909'
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64960>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64960] jsonencode produces different results for single inputs than Matlab,
Rik <=