Math.Round opens the browser print dialog
See original GitHub issueDescribe the bug
Put the following code in the http:/try.dot.net page:
using System;
public class Example
{
public static void Main()
{
var x = Math.Round(11.1, MidpointRounding.AwayFromZero);
}
}
Instead of printing the output, the “run” button opens the browser’s print dialog.
Did this error occur while using dotnet try
or online?
-
dotnet-try
- online
What kind of error was it?
- User Interface (UI): For example the output never displayed
- Service Error: For example “The service is temporarily unavailable. We are working on it”
- Other:
Screenshots
Please complete the following:
- OS
- Windows 10
- macOS
- Linux (Please specify distro)
- iOS
- Android
- Browser
- Chrome
- Edge
- Safari
Both Edge and Chrome exhibit this behavior on both Windows 10 and MacOS.
/cc @jonsequitur @rchande
Issue Analytics
- State:
- Created 4 years ago
- Reactions:801
- Comments:80 (5 by maintainers)
Top Results From Across the Web
Math.Round opens the browser print dialog | Hacker News
The issue is that print call. They expect it to call their own print function. But that's not in scope so it falls...
Read more >Math.Round opens the browser print dialog : r/programmingcirclejerk
This what happens when language let programmers DRY themselves out too much, they confuse print-to-log with print-to-paper. Go doesn't have generics for ...
Read more >Scott Hanselman on Twitter: "Good bug? Or greatest bug?!? “Math ...
Math.Round opens the browser print dialog · Issue #290 · dotnet/try ... page: using System; public class Example { public static void Main()...
Read more >Probably the most interesting bug... - Synergy-IT Pakistan | Facebook
Math.Round opens the browser print dialog · Issue #290 · dotnet/try. Describe the bug Put the following code in the http:/try.dot.net page: using...
Read more >show the window print dialog using JavaScript in Google ...
afaik this is the only way to tell the browser to show the print dialog. Unfortunately Google Chrome decides to show its own...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I tried this on IE5.5 in a MacOS 9 VM and an Apple Laserwriter II spontaneously materialized on the floor
+1