Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. function in vb 6

function in vb 6

Scheduled Pinned Locked Moved Visual Basic
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    noshaba mariam
    wrote on last edited by
    #1

    I want to round any float value to its next value but with round function it depends upno the fraction like if i do round(43.24 , 2) it will return me 43 but i want to get 44 is there any function in vb 6 with which i could do so Noshaba

    G 1 Reply Last reply
    0
    • N noshaba mariam

      I want to round any float value to its next value but with round function it depends upno the fraction like if i do round(43.24 , 2) it will return me 43 but i want to get 44 is there any function in vb 6 with which i could do so Noshaba

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      The Int function always rounds to the lower integer. You can use that by negating the number before and after rounding to make it round to the higher integer. -Int(-43.24) returns 44. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups