Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
1c8b24ad
Commit
1c8b24ad
authored
24 years ago
by
Tom Tromey
Committed by
Tom Tromey
24 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* java/lang/Float.java (parseFloat): New method.
From-SVN: r39555
parent
34ce3d7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
libjava/ChangeLog
+4
-0
libjava/java/lang/Float.java
+9
-1
No files found.
libjava/ChangeLog
View file @
1c8b24ad
2001-02-08 Tom Tromey <tromey@redhat.com>
* java/lang/Float.java (parseFloat): New method.
2001-02-08 Tom Tromey <tromey@redhat.com>
From paul@dawa.demon.co.uk. Fix for PR libgcj/1913:
* java/io/InputStreamReader.java (ready, read): Throw IOException
if stream has been closed.
...
...
This diff is collapsed.
Click to expand it.
libjava/java/lang/Float.java
View file @
1c8b24ad
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
/* Copyright (C) 1998, 1999, 2000
, 2001
Free Software Foundation
This file is part of libgcj.
...
...
@@ -49,6 +49,14 @@ public final class Float extends Number implements Comparable
this
.
value
=
valueOf
(
s
).
floatValue
();
}
public
static
float
parseFloat
(
String
s
)
throws
NumberFormatException
{
// The spec says that parseFloat() should work like
// Double.valueOf(). This is equivalent, in our implementation,
// but more efficient.
return
(
float
)
Double
.
parseDouble
(
s
);
}
public
String
toString
()
{
return
toString
(
value
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment