Quantcast
Viewing all articles
Browse latest Browse all 27046

[RESOLVED] Floating point numbers

Take this example

Code:

Public Class Form1

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim d As Double = 55.0

        Debug.WriteLine(d.ToString())
        Debug.WriteLine(d.ToString("c"))
        Debug.WriteLine(d.ToString("e"))
        Debug.WriteLine(d.ToString("f"))
    End Sub
End Class

f displays 55.00 but whats the letter that would dimply display 55?

Viewing all articles
Browse latest Browse all 27046

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>